From 90ebf3f90748fa77d7de4d9c358ba4eb57b91b6d Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Fri, 30 Mar 2018 13:10:25 +0900 Subject: Fix intermittent CI failure due to setting explicit `person.id = 10` https://travis-ci.org/rails/rails/jobs/360109429 --- activerecord/test/cases/associations/has_many_associations_test.rb | 4 ---- 1 file changed, 4 deletions(-) (limited to 'activerecord/test/cases') 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 -- cgit v1.2.3