From 16ef8482699f3c23eb7c01123779484bdbfa2fa0 Mon Sep 17 00:00:00 2001 From: Prathamesh Sonpatki Date: Tue, 12 Jul 2016 22:45:58 +0530 Subject: Don't add specific id's to the readers fixtures - This causes failures in the `test_create_resets_cached_counters` from the has_many_associations tests because sometimes a Post record gets created with id as 1 so the readers records get associated with it and `person.readers` returns these 2 records instead of empty array. - Better to just remove the ids. --- activerecord/test/fixtures/readers.yml | 2 -- 1 file changed, 2 deletions(-) (limited to 'activerecord/test') diff --git a/activerecord/test/fixtures/readers.yml b/activerecord/test/fixtures/readers.yml index 14b883f041..d8df05f7fc 100644 --- a/activerecord/test/fixtures/readers.yml +++ b/activerecord/test/fixtures/readers.yml @@ -1,11 +1,9 @@ michael_welcome: - id: 1 post_id: 1 person_id: 1 first_post_id: 2 michael_authorless: - id: 2 post_id: 3 person_id: 1 first_post_id: 3 -- cgit v1.2.3