Avoid Ruby warnings "ambiguous first argument" (#881)

- add parentheses to disambiguate
This commit is contained in:
Olle Jonsson 2020-04-05 17:11:25 +02:00 committed by GitHub
parent 8f4f407bc0
commit 3e7faa4369
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -217,7 +217,7 @@ module Draper
it "uses the custom class name" do
decorator = ProductsDecorator.new([])
expect(decorator.to_s).to match /ProductsDecorator/
expect(decorator.to_s).to match(/ProductsDecorator/)
end
end
end

View File

@ -439,7 +439,7 @@ module Draper
it "returns a detailed description of the decorator" do
decorator = ProductDecorator.new(double)
expect(decorator.inspect).to match /#<ProductDecorator:0x\h+ .+>/
expect(decorator.inspect).to match(/#<ProductDecorator:0x\h+ .+>/)
end
it "includes the object" do