We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f4f407 commit 3e7faa4Copy full SHA for 3e7faa4
spec/draper/collection_decorator_spec.rb
@@ -217,7 +217,7 @@ module Draper
217
it "uses the custom class name" do
218
decorator = ProductsDecorator.new([])
219
220
- expect(decorator.to_s).to match /ProductsDecorator/
+ expect(decorator.to_s).to match(/ProductsDecorator/)
221
end
222
223
spec/draper/decorator_spec.rb
@@ -439,7 +439,7 @@ module Draper
439
it "returns a detailed description of the decorator" do
440
decorator = ProductDecorator.new(double)
441
442
- expect(decorator.inspect).to match /#<ProductDecorator:0x\h+ .+>/
+ expect(decorator.inspect).to match(/#<ProductDecorator:0x\h+ .+>/)
443
444
445
it "includes the object" do
0 commit comments