Merge pull request #163 from crystal-lang/fix/crystal-1.4

This commit is contained in:
Beta Ziliani 2022-03-25 14:59:20 -03:00 committed by GitHub
commit 3e9ed7a304
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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