Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make this test pass on > 1.9

  • Loading branch information...
commit 137d8e0b2fe9fcc4fdac6cbbd44ca010784e5972 1 parent ad4615e
@spastorino spastorino authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 activeresource/test/cases/base_test.rb
View
6 activeresource/test/cases/base_test.rb
@@ -1022,7 +1022,11 @@ def test_to_json_including_root
joe = Person.find(6)
json = joe.encode
Person.format = :xml
- assert_equal json, '{"person":{"person":{"name":"Joe","id":6}}}'
+
+ assert_match %r{^\{"person":\{"person":\{}, json
+ assert_match %r{"id":6}, json
+ assert_match %r{"name":"Joe"}, json
+ assert_match %r{\}\}\}$}, json
end
def test_to_param_quacks_like_active_record

0 comments on commit 137d8e0

Please sign in to comment.
Something went wrong with that request. Please try again.