We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fccc55 commit f439aa8Copy full SHA for f439aa8
spec/image_optim/bin_resolver_spec.rb
@@ -269,7 +269,7 @@ def raises_error(error_message)
269
5.times do
270
expect do
271
resolver.resolve!(:pngcrush)
272
- end.to raise_error Bin::BadVersion
+ end.to raise_error Bin::BadVersion, /is known to produce broken pngs/
273
end
274
275
@@ -280,7 +280,7 @@ def raises_error(error_message)
280
expect(Bin).to receive(:new).and_return(bin)
281
allow(bin).to receive(:version).and_return(SimpleVersion.new('1.15'))
282
283
- expect(bin).to receive(:warn).once
+ expect(bin).to receive(:warn).once.with(match(/does not use zopfli/))
284
285
286
0 commit comments