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