aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_commands_signin_command.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-28 22:30:28 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-28 22:30:28 +0000
commite82802070a6b64c86a09731497ef9eafaebdee5c (patch)
treeb11757bd1c2a1627bdd1ebe1c38beb747d67e837 /test/rubygems/test_gem_commands_signin_command.rb
parent89bfee6fd47d059ca2a95159eb964f37bdbb3f2c (diff)
downloadruby-e82802070a6b64c86a09731497ef9eafaebdee5c.tar.gz
Merge rubygems-2.7.3.
http://blog.rubygems.org/2017/11/28/2.7.3-released.html git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_commands_signin_command.rb')
-rw-r--r--test/rubygems/test_gem_commands_signin_command.rb11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/rubygems/test_gem_commands_signin_command.rb b/test/rubygems/test_gem_commands_signin_command.rb
index b41fed86e8..56eecfc1f8 100644
--- a/test/rubygems/test_gem_commands_signin_command.rb
+++ b/test/rubygems/test_gem_commands_signin_command.rb
@@ -27,10 +27,11 @@ class TestGemCommandsSigninCommand < Gem::TestCase
def test_execute_when_already_signed_in_with_same_host
host = 'http://some-gemcutter-compatible-host.org'
- sign_in_ui = util_capture(nil, host) { @cmd.execute }
+
+ util_capture(nil, host) { @cmd.execute }
old_credentials = YAML.load_file Gem.configuration.credentials_path
- sign_in_ui = util_capture(nil, host) { @cmd.execute }
+ util_capture(nil, host) { @cmd.execute }
new_credentials = YAML.load_file Gem.configuration.credentials_path
assert_equal old_credentials[host], new_credentials[host]
@@ -38,9 +39,11 @@ class TestGemCommandsSigninCommand < Gem::TestCase
def test_execute_when_already_signed_in_with_different_host
api_key = 'a5fdbb6ba150cbb83aad2bb2fede64cf04045xxxx'
- sign_in_ui = util_capture(nil, nil, api_key) { @cmd.execute }
+
+ util_capture(nil, nil, api_key) { @cmd.execute }
host = 'http://some-gemcutter-compatible-host.org'
- sign_in_ui = util_capture(nil, host, api_key) { @cmd.execute }
+
+ util_capture(nil, host, api_key) { @cmd.execute }
credentials = YAML.load_file Gem.configuration.credentials_path
assert_equal credentials[:rubygems_api_key], api_key