summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_specification_command.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <[email protected]>2020-03-24 19:51:43 +0100
committerHiroshi SHIBATA <[email protected]>2020-03-30 12:42:10 +0900
commitba9dcdab3669f11b2e265712ceb43227c366fc3b ()
treee6aa19535d1b3388c9303497e1dc649e9e804ed8 /test/rubygems/test_gem_commands_specification_command.rb
parentf987302cf4a59944e5f01572d8ac36bbdbbc97cc (diff)
[rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems
So it matches the style used by bundler. https://.com/rubygems/rubygems/commit/ab0580fd65
-rw-r--r--test/rubygems/test_gem_commands_specification_command.rb36
1 files changed, 18 insertions, 18 deletions
@@ -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_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_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_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_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
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
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
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_equal '', @ui.error
end