From 6cf84c11e05d4fd2883cdd9920bf7a05e2a3fd8f Mon Sep 17 00:00:00 2001 From: Benjamin Fleischer Date: Sat, 24 Dec 2016 21:29:46 -0600 Subject: [PATCH] Less strict exception matching --- test/active_model_serializers/test/schema_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/active_model_serializers/test/schema_test.rb b/test/active_model_serializers/test/schema_test.rb index d217d0064..0fe497d78 100644 --- a/test/active_model_serializers/test/schema_test.rb +++ b/test/active_model_serializers/test/schema_test.rb @@ -116,7 +116,7 @@ def test_with_a_non_existent_file def test_that_raises_with_a_invalid_json_body # message changes from JSON gem 2.0.2 to 2.2.0 - message = /A JSON text must at least contain two octets!|an unexpected token at ''/ + message = /A JSON text must at least contain two octets!|unexpected token at ''/ get :invalid_json_body