diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-03-24 19:51:43 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-03-30 12:42:10 +0900 |
commit | ba9dcdab3669f11b2e265712ceb43227c366fc3b (patch) | |
tree | e6aa19535d1b3388c9303497e1dc649e9e804ed8 /test/rubygems/test_gem_commands_specification_command.rb | |
parent | f987302cf4a59944e5f01572d8ac36bbdbbc97cc (diff) | |
download | ruby-ba9dcdab3669f11b2e265712ceb43227c366fc3b.tar.gz |
[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_specification_command.rb')
-rw-r--r-- | test/rubygems/test_gem_commands_specification_command.rb | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/test/rubygems/test_gem_commands_specification_command.rb b/test/rubygems/test_gem_commands_specification_command.rb index f56aa9777a..cb66868568 100644 --- a/test/rubygems/test_gem_commands_specification_command.rb +++ b/test/rubygems/test_gem_commands_specification_command.rb @@ -21,8 +21,8 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase @cmd.execute end - assert_match %r|Gem::Specification|, @ui.output - assert_match %r|name: foo|, @ui.output + assert_match %r{Gem::Specification}, @ui.output + assert_match %r{name: foo}, @ui.output assert_equal '', @ui.error end @@ -37,10 +37,10 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase @cmd.execute end - assert_match %r|Gem::Specification|, @ui.output - assert_match %r|name: foo|, @ui.output - assert_match %r|version: 0.0.1|, @ui.output - assert_match %r|version: 0.0.2|, @ui.output + assert_match %r{Gem::Specification}, @ui.output + assert_match %r{name: foo}, @ui.output + assert_match %r{version: 0.0.1}, @ui.output + assert_match %r{version: 0.0.2}, @ui.output assert_equal '', @ui.error end @@ -99,8 +99,8 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase @cmd.execute end - assert_match %r|Gem::Specification|, @ui.output - assert_match %r|name: foo|, @ui.output + assert_match %r{Gem::Specification}, @ui.output + assert_match %r{name: foo}, @ui.output assert_equal '', @ui.error end @@ -131,8 +131,8 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase @cmd.execute end - assert_match %r|Gem::Specification|, @ui.output - assert_match %r|name: foo|, @ui.output + assert_match %r{Gem::Specification}, @ui.output + assert_match %r{name: foo}, @ui.output assert_equal '', @ui.error end @@ -164,8 +164,8 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase @cmd.execute end - assert_match %r|\A--- !ruby/object:Gem::Specification|, @ui.output - assert_match %r|name: foo|, @ui.output + assert_match %r{\A--- !ruby/object:Gem::Specification}, @ui.output + assert_match %r{name: foo}, @ui.output end def test_execute_remote_with_version @@ -200,8 +200,8 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase @cmd.execute end - assert_match %r|\A--- !ruby/object:Gem::Specification|, @ui.output - assert_match %r|name: foo|, @ui.output + assert_match %r{\A--- !ruby/object:Gem::Specification}, @ui.output + assert_match %r{name: foo}, @ui.output spec = YAML.load @ui.output @@ -222,8 +222,8 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase @cmd.execute end - assert_match %r|\A--- !ruby/object:Gem::Specification|, @ui.output - assert_match %r|name: foo|, @ui.output + assert_match %r{\A--- !ruby/object:Gem::Specification}, @ui.output + assert_match %r{name: foo}, @ui.output spec = YAML.load @ui.output @@ -242,8 +242,8 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase @cmd.execute end - assert_match %r|Gem::Specification.new|, @ui.output - assert_match %r|s.name = "foo"|, @ui.output + assert_match %r{Gem::Specification.new}, @ui.output + assert_match %r{s.name = "foo"}, @ui.output assert_equal '', @ui.error end |