1
0
Fork 0
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:
Rafael França 2018-12-04 14:05:36 -05:00 committed by GitHub
commit bd62389307
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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