mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* remove trailing spaces, append newline at EOF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0ab1c69e17
commit
3b1d6fc168
5 changed files with 15 additions and 15 deletions
|
@ -157,14 +157,14 @@ extensions will be restored.
|
|||
install_defaults.to_s['--env-shebang']
|
||||
end
|
||||
|
||||
installer_options = {
|
||||
installer_options = {
|
||||
:wrappers => true,
|
||||
:force => true,
|
||||
:install_dir => spec.base_dir,
|
||||
:env_shebang => env_shebang,
|
||||
:build_args => spec.build_args,
|
||||
}
|
||||
|
||||
|
||||
if options[:only_executables] then
|
||||
installer = Gem::Installer.for_spec(spec, installer_options)
|
||||
installer.generate_bin
|
||||
|
|
|
@ -1756,7 +1756,7 @@ class TestGem < Gem::TestCase
|
|||
else
|
||||
platform = " #{platform}"
|
||||
end
|
||||
expected = if Gem::USE_BUNDLER_FOR_GEMDEPS
|
||||
expected = if Gem::USE_BUNDLER_FOR_GEMDEPS
|
||||
<<-EXPECTED
|
||||
Could not find gem 'a#{platform}' in any of the gem sources listed in your Gemfile.
|
||||
You may need to `gem install -g` to install missing gems
|
||||
|
|
|
@ -122,4 +122,4 @@ class TestGemBundlerVersionFinder < Gem::TestCase
|
|||
bvf.filter!(specs)
|
||||
specs
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -7,10 +7,10 @@ class TestGemCommandsSigninCommand < Gem::TestCase
|
|||
|
||||
def setup
|
||||
super
|
||||
|
||||
|
||||
Gem.configuration.rubygems_api_key = nil
|
||||
Gem.configuration.api_keys.clear
|
||||
|
||||
|
||||
@cmd = Gem::Commands::SigninCommand.new
|
||||
end
|
||||
|
||||
|
@ -19,7 +19,7 @@ class TestGemCommandsSigninCommand < Gem::TestCase
|
|||
File.delete(credentials_path) if File.exist?(credentials_path)
|
||||
super
|
||||
end
|
||||
|
||||
|
||||
def test_execute_when_not_already_signed_in
|
||||
sign_in_ui = util_capture() { @cmd.execute }
|
||||
assert_match %r{Signed in.}, sign_in_ui.output
|
||||
|
@ -29,11 +29,11 @@ class TestGemCommandsSigninCommand < Gem::TestCase
|
|||
host = 'http://some-gemcutter-compatible-host.org'
|
||||
sign_in_ui = util_capture(nil, host) { @cmd.execute }
|
||||
old_credentials = YAML.load_file Gem.configuration.credentials_path
|
||||
|
||||
|
||||
sign_in_ui = util_capture(nil, host) { @cmd.execute }
|
||||
new_credentials = YAML.load_file Gem.configuration.credentials_path
|
||||
|
||||
assert_equal old_credentials[host], new_credentials[host]
|
||||
|
||||
assert_equal old_credentials[host], new_credentials[host]
|
||||
end
|
||||
|
||||
def test_execute_when_already_signed_in_with_different_host
|
||||
|
@ -57,15 +57,15 @@ class TestGemCommandsSigninCommand < Gem::TestCase
|
|||
|
||||
api_key = 'a5fdbb6ba150cbb83aad2bb2fede64cf040453903'
|
||||
credentials = YAML.load_file Gem.configuration.credentials_path
|
||||
assert_equal api_key, credentials[host]
|
||||
assert_equal api_key, credentials[host]
|
||||
end
|
||||
|
||||
|
||||
def test_execute_with_valid_creds_set_for_default_host
|
||||
util_capture {@cmd.execute}
|
||||
|
||||
|
||||
api_key = 'a5fdbb6ba150cbb83aad2bb2fede64cf040453903'
|
||||
credentials = YAML.load_file Gem.configuration.credentials_path
|
||||
|
||||
|
||||
assert_equal api_key, credentials[:rubygems_api_key]
|
||||
end
|
||||
|
||||
|
|
|
@ -287,7 +287,7 @@ WARNING: Use your OS package manager to uninstall vendor gems
|
|||
end
|
||||
|
||||
output = ui.output.split "\n"
|
||||
|
||||
|
||||
assert_equal output.first, "Gem 'd' is not installed"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue