Make this test pass on > 1.9

This commit is contained in:
Santiago Pastorino 2010-04-19 01:46:30 -03:00
parent ad4615e978
commit 137d8e0b2f

@ -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