@@ -7,10 +7,10 @@ class TestGemCommandsSigninCommand < Gem::TestCase
77
88 def setup
99 super
10-
10+
1111 Gem . configuration . rubygems_api_key = nil
1212 Gem . configuration . api_keys . clear
13-
13+
1414 @cmd = Gem ::Commands ::SigninCommand . new
1515 end
1616
@@ -19,7 +19,7 @@ def teardown
1919 File . delete ( credentials_path ) if File . exist? ( credentials_path )
2020 super
2121 end
22-
22+
2323 def test_execute_when_not_already_signed_in
2424 sign_in_ui = util_capture ( ) { @cmd . execute }
2525 assert_match %r{Signed in.} , sign_in_ui . output
@@ -29,11 +29,11 @@ def test_execute_when_already_signed_in_with_same_host
2929 host = 'http://some-gemcutter-compatible-host.org'
3030 sign_in_ui = util_capture ( nil , host ) { @cmd . execute }
3131 old_credentials = YAML . load_file Gem . configuration . credentials_path
32-
32+
3333 sign_in_ui = util_capture ( nil , host ) { @cmd . execute }
3434 new_credentials = YAML . load_file Gem . configuration . credentials_path
35-
36- assert_equal old_credentials [ host ] , new_credentials [ host ]
35+
36+ assert_equal old_credentials [ host ] , new_credentials [ host ]
3737 end
3838
3939 def test_execute_when_already_signed_in_with_different_host
@@ -57,15 +57,15 @@ def test_execute_with_host_supplied
5757
5858 api_key = 'a5fdbb6ba150cbb83aad2bb2fede64cf040453903'
5959 credentials = YAML . load_file Gem . configuration . credentials_path
60- assert_equal api_key , credentials [ host ]
60+ assert_equal api_key , credentials [ host ]
6161 end
62-
62+
6363 def test_execute_with_valid_creds_set_for_default_host
6464 util_capture { @cmd . execute }
65-
65+
6666 api_key = 'a5fdbb6ba150cbb83aad2bb2fede64cf040453903'
6767 credentials = YAML . load_file Gem . configuration . credentials_path
68-
68+
6969 assert_equal api_key , credentials [ :rubygems_api_key ]
7070 end
7171
0 commit comments