diff options
author | svn <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-08 01:32:22 +0000 |
---|---|---|
committer | svn <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-08 01:32:22 +0000 |
commit | 3b1d6fc1680cd11937df54599c7eab0b98016932 (patch) | |
tree | 47d11386b2ced1245ae1326c23cd7f559d0219e1 /test/rubygems | |
parent | 0ab1c69e17f5190b0db25f31c0d413012dee714e (diff) | |
download | ruby-3b1d6fc1680cd11937df54599c7eab0b98016932.tar.gz |
* remove trailing spaces, append newline at EOF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems')
-rw-r--r-- | test/rubygems/test_gem.rb | 2 | ||||
-rw-r--r-- | test/rubygems/test_gem_bundler_version_finder.rb | 2 | ||||
-rw-r--r-- | test/rubygems/test_gem_commands_signin_command.rb | 20 | ||||
-rw-r--r-- | test/rubygems/test_gem_commands_uninstall_command.rb | 2 |
4 files changed, 13 insertions, 13 deletions
diff --git a/test/rubygems/test_gem.rb b/test/rubygems/test_gem.rb index 2ec7044d7a..3225a05c6b 100644 --- a/test/rubygems/test_gem.rb +++ b/test/rubygems/test_gem.rb @@ -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 diff --git a/test/rubygems/test_gem_bundler_version_finder.rb b/test/rubygems/test_gem_bundler_version_finder.rb index fff52e8186..7dafe13033 100644 --- a/test/rubygems/test_gem_bundler_version_finder.rb +++ b/test/rubygems/test_gem_bundler_version_finder.rb @@ -122,4 +122,4 @@ class TestGemBundlerVersionFinder < Gem::TestCase bvf.filter!(specs) specs end -end
\ No newline at end of file +end diff --git a/test/rubygems/test_gem_commands_signin_command.rb b/test/rubygems/test_gem_commands_signin_command.rb index ec40b71ada..b41fed86e8 100644 --- a/test/rubygems/test_gem_commands_signin_command.rb +++ b/test/rubygems/test_gem_commands_signin_command.rb @@ -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 diff --git a/test/rubygems/test_gem_commands_uninstall_command.rb b/test/rubygems/test_gem_commands_uninstall_command.rb index cca135afde..2097ca7d43 100644 --- a/test/rubygems/test_gem_commands_uninstall_command.rb +++ b/test/rubygems/test_gem_commands_uninstall_command.rb @@ -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 |