diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-04-17 19:06:36 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-04-19 06:56:18 +0000 |
commit | 3988b1d471ef79be3a86b3db893a0caaaa1d7ff1 (patch) | |
tree | e82de74f2bb9d51d92d72e28a03c51c8fcf86643 /test/rubygems | |
parent | bf8d8ce1ee196a508c934f6664af949ca98548e5 (diff) | |
download | ruby-3988b1d471ef79be3a86b3db893a0caaaa1d7ff1.tar.gz |
[rubygems/rubygems] api_key is always contained string
https://github.com/rubygems/rubygems/commit/925f7f6717
Diffstat (limited to 'test/rubygems')
-rw-r--r-- | test/rubygems/test_gem_commands_signin_command.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/rubygems/test_gem_commands_signin_command.rb b/test/rubygems/test_gem_commands_signin_command.rb index 15e852cfdb..fd4ffb414a 100644 --- a/test/rubygems/test_gem_commands_signin_command.rb +++ b/test/rubygems/test_gem_commands_signin_command.rb @@ -109,7 +109,7 @@ class TestGemCommandsSigninCommand < Gem::TestCase def test_execute_with_key_name_and_scope email = "you@example.com" password = "secret" - api_key = "1234" + api_key = "1234abcd" fetcher = Gem::RemoteFetcher.fetcher key_name_ui = Gem::MockGemUi.new "#{email}\n#{password}\ntest-key\n\ny\n\n\n\n\n\n" @@ -134,7 +134,7 @@ class TestGemCommandsSigninCommand < Gem::TestCase def test_execute_with_key_name_scope_and_mfa_level_of_ui_only email = "you@example.com" password = "secret" - api_key = "1234" + api_key = "1234abcd" fetcher = Gem::RemoteFetcher.fetcher mfa_level = "ui_only" @@ -161,7 +161,7 @@ class TestGemCommandsSigninCommand < Gem::TestCase def test_execute_with_key_name_scope_and_mfa_level_of_gem_signin email = "you@example.com" password = "secret" - api_key = "1234" + api_key = "1234abcd" fetcher = Gem::RemoteFetcher.fetcher mfa_level = "ui_and_gem_signin" @@ -188,7 +188,7 @@ class TestGemCommandsSigninCommand < Gem::TestCase def test_execute_with_warnings email = "you@example.com" password = "secret" - api_key = "1234" + api_key = "1234abcd" fetcher = Gem::RemoteFetcher.fetcher mfa_level = "disabled" warning = "/[WARNING/] For protection of your account and gems" @@ -204,7 +204,7 @@ class TestGemCommandsSigninCommand < Gem::TestCase email = "you@example.com" password = "secret" - api_key = "1234" + api_key = "1234abcd" fetcher = Gem::RemoteFetcher.fetcher key_name_ui = Gem::MockGemUi.new "#{email}\n#{password}\ntest-key\n\ny\n\n\n\n\n\ny" |