Fix specs for Crystal 1.4.0

The format of string conversion error messages was changed in
https://github.com/crystal-lang/crystal#11883
This commit is contained in:
Johannes Müller 2022-03-23 21:25:14 +01:00
parent e3f1a308b4
commit c8a0849423
No known key found for this signature in database
GPG key ID: F0F349637AC5087A

View file

@ -105,7 +105,7 @@ describe "DB::Serializable" do
end
it "should fail to initialize a simple model if types do not match" do
expect_raises DB::MappingException, "Invalid Int32: b\n deserializing SimpleModel#c0" do
expect_raises DB::MappingException, /Invalid Int32: "?b"?\n deserializing SimpleModel#c0/ do
from_dummy("b,a", SimpleModel)
end
end