From 3988b1d471ef79be3a86b3db893a0caaaa1d7ff1 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 17 Apr 2023 19:06:36 +0900 Subject: [rubygems/rubygems] api_key is always contained string https://github.com/rubygems/rubygems/commit/925f7f6717 --- test/rubygems/test_gem_commands_signin_command.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/rubygems') 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" -- cgit v1.2.1