diff options
author | Evan Phoenix <ephoenix@engineyard.com> | 2010-03-22 09:59:40 -0700 |
---|---|---|
committer | Evan Phoenix <ephoenix@engineyard.com> | 2010-03-22 10:00:04 -0700 |
commit | 4f5de7f89a359924abe21949e0f585682c04dd9f (patch) | |
tree | f69a6edf7e9cf4bd67d148aa03db3fe0a9072b9e /activerecord/test | |
parent | ab3503b496b2f489391c6cc76240d8516182a2c1 (diff) | |
download | rails-4f5de7f89a359924abe21949e0f585682c04dd9f.tar.gz rails-4f5de7f89a359924abe21949e0f585682c04dd9f.tar.bz2 rails-4f5de7f89a359924abe21949e0f585682c04dd9f.zip |
Reset class attribute after changing it
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/json_serialization_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/cases/json_serialization_test.rb b/activerecord/test/cases/json_serialization_test.rb index 54bc8e2343..a3145d2c04 100644 --- a/activerecord/test/cases/json_serialization_test.rb +++ b/activerecord/test/cases/json_serialization_test.rb @@ -27,6 +27,8 @@ class JsonSerializationTest < ActiveRecord::TestCase @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 |