1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix attribute decoration leak on serialized attribute test

This commit is contained in:
Gannon McGibbon 2018-11-28 14:34:19 -05:00
parent 9c6e362a63
commit dcbf44e8ae

View file

@ -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