Less strict exception matching

This commit is contained in:
Benjamin Fleischer 2016-12-24 21:29:46 -06:00
parent 4394f76b86
commit 6cf84c11e0

View File

@ -116,7 +116,7 @@ module ActiveModelSerializers
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