From c8a08494233b5e8b00a5606ffa180acff525dd37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Wed, 23 Mar 2022 21:25:14 +0100 Subject: [PATCH] Fix specs for Crystal 1.4.0 The format of string conversion error messages was changed in https://github.com/crystal-lang/crystal#11883 --- spec/serializable_spec.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/serializable_spec.cr b/spec/serializable_spec.cr index bf2b2d8..60c25f8 100644 --- a/spec/serializable_spec.cr +++ b/spec/serializable_spec.cr @@ -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