mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
[rubygems/rubygems] Vendor net-http and net-protocol in RubyGems
99d91c9ed2
This commit is contained in:
parent
6cefad7704
commit
ce924ce1fb
33 changed files with 7158 additions and 75 deletions
|
@ -44,7 +44,7 @@ EOF
|
|||
@cmd.show_owners("freewill")
|
||||
end
|
||||
|
||||
assert_equal Net::HTTP::Get, @stub_fetcher.last_request.class
|
||||
assert_equal Gem::Net::HTTP::Get, @stub_fetcher.last_request.class
|
||||
assert_equal Gem.configuration.rubygems_api_key, @stub_fetcher.last_request["Authorization"]
|
||||
|
||||
assert_match(/Owners for gem: freewill/, @stub_ui.output)
|
||||
|
@ -165,7 +165,7 @@ EOF
|
|||
@cmd.add_owners("freewill", ["user-new1@example.com"])
|
||||
end
|
||||
|
||||
assert_equal Net::HTTP::Post, @stub_fetcher.last_request.class
|
||||
assert_equal Gem::Net::HTTP::Post, @stub_fetcher.last_request.class
|
||||
assert_equal Gem.configuration.rubygems_api_key, @stub_fetcher.last_request["Authorization"]
|
||||
assert_equal "email=user-new1%40example.com", @stub_fetcher.last_request.body
|
||||
|
||||
|
@ -244,7 +244,7 @@ EOF
|
|||
@cmd.remove_owners("freewill", ["user-remove1@example.com"])
|
||||
end
|
||||
|
||||
assert_equal Net::HTTP::Delete, @stub_fetcher.last_request.class
|
||||
assert_equal Gem::Net::HTTP::Delete, @stub_fetcher.last_request.class
|
||||
assert_equal Gem.configuration.rubygems_api_key, @stub_fetcher.last_request["Authorization"]
|
||||
assert_equal "email=user-remove1%40example.com", @stub_fetcher.last_request.body
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue