mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
[rubygems/rubygems] util/rubocop -A --only Style/RegexpLiteral
9264d83421
This commit is contained in:
parent
65d27d3c0a
commit
e003784fc8
46 changed files with 221 additions and 222 deletions
|
@ -46,11 +46,11 @@ EOF
|
|||
assert_equal Net::HTTP::Get, @stub_fetcher.last_request.class
|
||||
assert_equal Gem.configuration.rubygems_api_key, @stub_fetcher.last_request["Authorization"]
|
||||
|
||||
assert_match %r{Owners for gem: freewill}, @stub_ui.output
|
||||
assert_match %r{- user1@example.com}, @stub_ui.output
|
||||
assert_match %r{- user2@example.com}, @stub_ui.output
|
||||
assert_match %r{- user3}, @stub_ui.output
|
||||
assert_match %r{- 4}, @stub_ui.output
|
||||
assert_match(/Owners for gem: freewill/, @stub_ui.output)
|
||||
assert_match(/- user1@example.com/, @stub_ui.output)
|
||||
assert_match(/- user2@example.com/, @stub_ui.output)
|
||||
assert_match(/- user3/, @stub_ui.output)
|
||||
assert_match(/- 4/, @stub_ui.output)
|
||||
end
|
||||
|
||||
def test_show_owners_dont_load_objects
|
||||
|
@ -87,8 +87,8 @@ EOF
|
|||
@cmd.show_owners("freewill")
|
||||
end
|
||||
|
||||
assert_match %r{Owners for gem: freewill}, @stub_ui.output
|
||||
assert_match %r{- user1@example.com}, @stub_ui.output
|
||||
assert_match(/Owners for gem: freewill/, @stub_ui.output)
|
||||
assert_match(/- user1@example.com/, @stub_ui.output)
|
||||
end
|
||||
|
||||
def test_show_owners_setting_up_host
|
||||
|
@ -102,8 +102,8 @@ EOF
|
|||
@cmd.show_owners("freewill")
|
||||
end
|
||||
|
||||
assert_match %r{Owners for gem: freewill}, @stub_ui.output
|
||||
assert_match %r{- user1@example.com}, @stub_ui.output
|
||||
assert_match(/Owners for gem: freewill/, @stub_ui.output)
|
||||
assert_match(/- user1@example.com/, @stub_ui.output)
|
||||
end
|
||||
|
||||
def test_show_owners_denied
|
||||
|
@ -217,8 +217,8 @@ EOF
|
|||
end
|
||||
|
||||
assert_match add_owner_response, @stub_ui.output
|
||||
assert_match %r{Owners for gem: freewill}, @stub_ui.output
|
||||
assert_match %r{- user1@example.com}, @stub_ui.output
|
||||
assert_match(/Owners for gem: freewill/, @stub_ui.output)
|
||||
assert_match(/- user1@example.com/, @stub_ui.output)
|
||||
end
|
||||
|
||||
def test_add_owners_key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue