Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reset class attribute after changing it

  • Loading branch information...
commit 4f5de7f89a359924abe21949e0f585682c04dd9f 1 parent ab3503b
Evan Phoenix authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  activerecord/test/cases/json_serialization_test.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.