提交 137d8e0b 编写于 作者: S Santiago Pastorino

Make this test pass on > 1.9

上级 ad4615e9
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册