Skip to content

Commit

Permalink
Account for different error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
janko committed Sep 26, 2021
1 parent 9c4da90 commit b2b91df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/vips_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@

it "raises correct Vips::Error on unknown saver" do
error = assert_raises(Vips::Error) { ImageProcessing::Vips.convert("foo").call(@portrait) }
assert_includes error.message, "is not a known file format"
assert_match /is not a known file format|No known saver for/, error.message
end

it "accepts :saver" do
Expand Down

0 comments on commit b2b91df

Please sign in to comment.