diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-03-01 16:12:39 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2019-03-01 16:12:39 +0900 |
commit | 357aa83f84695a31328b17be4080f8ab4993fcb8 (patch) | |
tree | 7a881bb1839a97aa3ca3833323aa8801b20361d4 /activerecord | |
parent | 81d1f24d2fda359dacaf282d57c5f2eaa1ccd5d9 (diff) | |
download | rails-357aa83f84695a31328b17be4080f8ab4993fcb8.tar.gz rails-357aa83f84695a31328b17be4080f8ab4993fcb8.tar.bz2 rails-357aa83f84695a31328b17be4080f8ab4993fcb8.zip |
Avoid `Topic.dup` to prevent weird test failure
This is an alternative of 65c4b1b50df3fa59198de2d45d1f54b61ecc7864.
https://buildkite.com/rails/rails/builds/59147#117e9445-23e8-455a-b486-ea0ae9636405/120-129
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/serialized_attribute_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/serialized_attribute_test.rb b/activerecord/test/cases/serialized_attribute_test.rb index 5d341707eb..64b184765c 100644 --- a/activerecord/test/cases/serialized_attribute_test.rb +++ b/activerecord/test/cases/serialized_attribute_test.rb @@ -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" |