diff --git a/test/test_compat.rb b/test/test_compat.rb index e1ef5dca..c02c7b61 100755 --- a/test/test_compat.rb +++ b/test/test_compat.rb @@ -468,7 +468,7 @@ def test_range def test_arg_passing json = Oj.to_json(Argy.new(), :max_nesting => 40) - assert_equal(%|{"args":"[{:max_nesting=>40}]"}|, json) + assert_match(/.*max_nesting.*40.*/, json) end def test_max_nesting