Permalink
Browse files

Reset class attribute after changing it

  • Loading branch information...
1 parent ab3503b commit 4f5de7f89a359924abe21949e0f585682c04dd9f Evan Phoenix committed Mar 22, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 activerecord/test/cases/json_serialization_test.rb
@@ -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

0 comments on commit 4f5de7f

Please sign in to comment.