summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_contents_command.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-03-24 19:51:43 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-03-30 12:42:10 +0900
commitba9dcdab3669f11b2e265712ceb43227c366fc3b (patch)
treee6aa19535d1b3388c9303497e1dc649e9e804ed8 /test/rubygems/test_gem_commands_contents_command.rb
parentf987302cf4a59944e5f01572d8ac36bbdbbc97cc (diff)
[rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems
So it matches the style used by bundler. https://github.com/rubygems/rubygems/commit/ab0580fd65
Diffstat (limited to 'test/rubygems/test_gem_commands_contents_command.rb')
-rw-r--r--test/rubygems/test_gem_commands_contents_command.rb28
1 files changed, 14 insertions, 14 deletions
diff --git a/test/rubygems/test_gem_commands_contents_command.rb b/test/rubygems/test_gem_commands_contents_command.rb
index 93ebcca5bb..d8f01ecbf0 100644
--- a/test/rubygems/test_gem_commands_contents_command.rb
+++ b/test/rubygems/test_gem_commands_contents_command.rb
@@ -27,8 +27,8 @@ class TestGemCommandsContentsCommand < Gem::TestCase
@cmd.execute
end
- assert_match %r|lib/foo\.rb|, @ui.output
- assert_match %r|Rakefile|, @ui.output
+ assert_match %r{lib/foo\.rb}, @ui.output
+ assert_match %r{Rakefile}, @ui.output
assert_equal "", @ui.error
end
@@ -42,9 +42,9 @@ class TestGemCommandsContentsCommand < Gem::TestCase
@cmd.execute
end
- assert_match %r|lib/foo\.rb|, @ui.output
- assert_match %r|lib/bar\.rb|, @ui.output
- assert_match %r|Rakefile|, @ui.output
+ assert_match %r{lib/foo\.rb}, @ui.output
+ assert_match %r{lib/bar\.rb}, @ui.output
+ assert_match %r{Rakefile}, @ui.output
assert_equal "", @ui.error
end
@@ -57,8 +57,8 @@ class TestGemCommandsContentsCommand < Gem::TestCase
end
end
- assert_match %r|Unable to find gem 'foo' in default gem paths|, @ui.output
- assert_match %r|Directories searched:|, @ui.output
+ assert_match %r{Unable to find gem 'foo' in default gem paths}, @ui.output
+ assert_match %r{Directories searched:}, @ui.output
assert_equal "", @ui.error
end
@@ -71,8 +71,8 @@ class TestGemCommandsContentsCommand < Gem::TestCase
@cmd.execute
end
- assert_match %r|lib/foo\.rb|, @ui.output
- assert_match %r|Rakefile|, @ui.output
+ assert_match %r{lib/foo\.rb}, @ui.output
+ assert_match %r{Rakefile}, @ui.output
assert_equal "", @ui.error
end
@@ -86,8 +86,8 @@ class TestGemCommandsContentsCommand < Gem::TestCase
@cmd.execute
end
- assert_match %r|lib/foo\.rb|, @ui.output
- refute_match %r|Rakefile|, @ui.output
+ assert_match %r{lib/foo\.rb}, @ui.output
+ refute_match %r{Rakefile}, @ui.output
assert_equal "", @ui.error
end
@@ -146,9 +146,9 @@ class TestGemCommandsContentsCommand < Gem::TestCase
@cmd.execute
end
- assert_match %r|lib/foo\.rb|, @ui.output
- assert_match %r|lib/bar\.rb|, @ui.output
- assert_match %r|Rakefile|, @ui.output
+ assert_match %r{lib/foo\.rb}, @ui.output
+ assert_match %r{lib/bar\.rb}, @ui.output
+ assert_match %r{Rakefile}, @ui.output
assert_equal "", @ui.error
end