diff options
author | Ashley Ellis Pierce <anellis12@gmail.com> | 2022-02-24 15:50:17 +0000 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-04-06 08:54:59 +0900 |
commit | b75b67f1136363ea54e9f79a4d63a9a355312f26 (patch) | |
tree | cce9f02beb701b378b688378e499a1fc976c460a /test/rubygems/test_gem_gemcutter_utilities.rb | |
parent | bb3ecdba6a48e9c82b651e74debcec1a10081126 (diff) | |
download | ruby-b75b67f1136363ea54e9f79a4d63a9a355312f26.tar.gz |
[rubygems/rubygems] Use YAML
https://github.com/rubygems/rubygems/commit/6122e8cac5
Diffstat (limited to 'test/rubygems/test_gem_gemcutter_utilities.rb')
-rw-r--r-- | test/rubygems/test_gem_gemcutter_utilities.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rubygems/test_gem_gemcutter_utilities.rb b/test/rubygems/test_gem_gemcutter_utilities.rb index b3d105d3ad..667aba4701 100644 --- a/test/rubygems/test_gem_gemcutter_utilities.rb +++ b/test/rubygems/test_gem_gemcutter_utilities.rb @@ -229,7 +229,7 @@ class TestGemGemcutterUtilities < Gem::TestCase def util_sign_in(response, host = nil, args = [], extra_input = '') email = 'you@example.com' password = 'secret' - profile_response = [{"mfa" => "disabled"}.to_json, 200, 'OK'] + profile_response = [ "mfa: disabled\n" , 200, 'OK'] if host ENV['RUBYGEMS_HOST'] = host @@ -239,7 +239,7 @@ class TestGemGemcutterUtilities < Gem::TestCase @fetcher = Gem::FakeFetcher.new @fetcher.data["#{host}/api/v1/api_key"] = response - @fetcher.data["#{host}/api/v1/profile/me"] = profile_response + @fetcher.data["#{host}/api/v1/profile/me.yaml"] = profile_response Gem::RemoteFetcher.fetcher = @fetcher @sign_in_ui = Gem::MockGemUi.new("#{email}\n#{password}\n\n\n\n\n\n\n\n\n" + extra_input) |