提交 4f5de7f8 编写于 作者: E Evan Phoenix

Reset class attribute after changing it

上级 ab3503b4
......@@ -27,6 +27,8 @@ def test_should_demodulize_root_in_json
@contact = NamespacedContact.new :name => 'whatever'
json = @contact.to_json
assert_match %r{^\{"namespaced_contact":\{}, json
ensure
NamespacedContact.include_root_in_json = false
end
def test_should_include_root_in_json
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册