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

Avoid Topic.dup to prevent weird test failure

This is an alternative of 65c4b1b50d.

https://buildkite.com/rails/rails/builds/59147#117e9445-23e8-455a-b486-ea0ae9636405/120-129
This commit is contained in:
Ryuta Kamizono 2019-03-01 16:12:39 +09:00
parent 81d1f24d2f
commit 357aa83f84

View file

@ -374,7 +374,7 @@ class SerializedAttributeTest < ActiveRecord::TestCase
end
def test_serialized_attribute_works_under_concurrent_initial_access
model = Topic.dup
model = Class.new(Topic)
topic = model.create!
topic.update group: "1"