From dcbf44e8aeed1bbca1065be6b0ba1ddf234b93b0 Mon Sep 17 00:00:00 2001 From: Gannon McGibbon Date: Wed, 28 Nov 2018 14:34:19 -0500 Subject: Fix attribute decoration leak on serialized attribute test --- activerecord/test/cases/serialized_attribute_test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activerecord') diff --git a/activerecord/test/cases/serialized_attribute_test.rb b/activerecord/test/cases/serialized_attribute_test.rb index 1192b30b14..08ab4dc600 100644 --- a/activerecord/test/cases/serialized_attribute_test.rb +++ b/activerecord/test/cases/serialized_attribute_test.rb @@ -13,6 +13,10 @@ class SerializedAttributeTest < ActiveRecord::TestCase MyObject = Struct.new :attribute1, :attribute2 + # NOTE: Use a duplicate of Topic so attribute + # changes don't bleed into other tests + Topic = ::Topic.dup + teardown do Topic.serialize("content") end -- cgit v1.2.3