mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #34560 from gmcgibbon/fix_decorate_leak_on_serial_attr_test
Fix attribute decoration leak on serialized attribute test
This commit is contained in:
commit
bd62389307
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue