Avoid Ruby warnings "ambiguous first argument" (#881)
- add parentheses to disambiguate
This commit is contained in:
parent
8f4f407bc0
commit
3e7faa4369
|
@ -217,7 +217,7 @@ module Draper
|
||||||
it "uses the custom class name" do
|
it "uses the custom class name" do
|
||||||
decorator = ProductsDecorator.new([])
|
decorator = ProductsDecorator.new([])
|
||||||
|
|
||||||
expect(decorator.to_s).to match /ProductsDecorator/
|
expect(decorator.to_s).to match(/ProductsDecorator/)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -439,7 +439,7 @@ module Draper
|
||||||
it "returns a detailed description of the decorator" do
|
it "returns a detailed description of the decorator" do
|
||||||
decorator = ProductDecorator.new(double)
|
decorator = ProductDecorator.new(double)
|
||||||
|
|
||||||
expect(decorator.inspect).to match /#<ProductDecorator:0x\h+ .+>/
|
expect(decorator.inspect).to match(/#<ProductDecorator:0x\h+ .+>/)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "includes the object" do
|
it "includes the object" do
|
||||||
|
|
Loading…
Reference in New Issue