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:
parent
9c6e362a63
commit
dcbf44e8ae
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