diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-07-12 22:45:58 +0530 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-04-26 22:54:54 -0700 |
commit | 16ef8482699f3c23eb7c01123779484bdbfa2fa0 (patch) | |
tree | 5d747e4b0da7769935225674cf34c970f5dca3d0 /activerecord | |
parent | 142195051268abd6d5f38c17eaf1acd72a5b058d (diff) | |
download | rails-16ef8482699f3c23eb7c01123779484bdbfa2fa0.tar.gz rails-16ef8482699f3c23eb7c01123779484bdbfa2fa0.tar.bz2 rails-16ef8482699f3c23eb7c01123779484bdbfa2fa0.zip |
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.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/fixtures/readers.yml | 2 |
1 files changed, 0 insertions, 2 deletions
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 |