diff options
Diffstat (limited to 'test/rubygems/test_gem_commands_push_command.rb')
| -rw-r--r-- | test/rubygems/test_gem_commands_push_command.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_commands_push_command.rb b/test/rubygems/test_gem_commands_push_command.rb index fa3968ffce..e219ae170e 100644 --- a/test/rubygems/test_gem_commands_push_command.rb +++ b/test/rubygems/test_gem_commands_push_command.rb @@ -435,6 +435,7 @@ class TestGemCommandsPushCommand < Gem::TestCase response_mfa_enabled = "You have enabled multifactor authentication but your request doesn't have the correct OTP code. Please check it and retry." response_success = 'Successfully registered gem: freewill (1.0.0)' + response_profile = {"mfa" => "disabled"}.to_json @fetcher.data["#{@host}/api/v1/gems"] = [ [response_success, 200, "OK"], @@ -445,6 +446,10 @@ class TestGemCommandsPushCommand < Gem::TestCase ["", 200, "OK"], ] + @fetcher.data["#{@host}/api/v1/profile"] = [ + [response_profile, 200, "OK"], + ] + @cmd.instance_variable_set :@scope, :push_rubygem @cmd.options[:args] = [@path] @cmd.options[:host] = @host |
