diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-03-30 13:10:25 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-03-30 13:10:25 +0900 |
commit | 90ebf3f90748fa77d7de4d9c358ba4eb57b91b6d (patch) | |
tree | d5a45f7311b70c18093688e1cd4f2940a213892c /activerecord/test | |
parent | 7231b59004a0165afcd5496f33b60354cd45e73e (diff) | |
download | rails-90ebf3f90748fa77d7de4d9c358ba4eb57b91b6d.tar.gz rails-90ebf3f90748fa77d7de4d9c358ba4eb57b91b6d.tar.bz2 rails-90ebf3f90748fa77d7de4d9c358ba4eb57b91b6d.zip |
Fix intermittent CI failure due to setting explicit `person.id = 10`
https://travis-ci.org/rails/rails/jobs/360109429
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/associations/has_many_associations_test.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/activerecord/test/cases/associations/has_many_associations_test.rb b/activerecord/test/cases/associations/has_many_associations_test.rb index 00821f2319..a64432fae7 100644 --- a/activerecord/test/cases/associations/has_many_associations_test.rb +++ b/activerecord/test/cases/associations/has_many_associations_test.rb @@ -497,8 +497,6 @@ class HasManyAssociationsTest < ActiveRecord::TestCase person = Person.new person.first_name = "Naruto" person.references << Reference.new - person.id = 10 - person.references person.save! assert_equal 1, person.references.update_all(favourite: true) end @@ -507,8 +505,6 @@ class HasManyAssociationsTest < ActiveRecord::TestCase person = Person.new person.first_name = "Sasuke" person.references << Reference.new - person.id = 10 - person.references person.save! assert_predicate person.references, :exists? end |