Skip to content

Commit 6cf84c1

Browse files
committed
Less strict exception matching
1 parent 4394f76 commit 6cf84c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/active_model_serializers/test/schema_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def test_with_a_non_existent_file
116116

117117
def test_that_raises_with_a_invalid_json_body
118118
# message changes from JSON gem 2.0.2 to 2.2.0
119-
message = /A JSON text must at least contain two octets!|an unexpected token at ''/
119+
message = /A JSON text must at least contain two octets!|unexpected token at ''/
120120

121121
get :invalid_json_body
122122

0 commit comments

Comments
 (0)