Skip to content

Commit

Permalink
Less strict exception matching
Browse files Browse the repository at this point in the history
  • Loading branch information
bf4 committed Dec 25, 2016
1 parent 4394f76 commit 6cf84c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/active_model_serializers/test/schema_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6cf84c1

Please sign in to comment.