diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-07-12 23:21:50 +0530 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-04-26 22:54:55 -0700 |
commit | e59d1354e8c2983aba64dbf3dd83f03d3845ceb9 (patch) | |
tree | 64374892863c423e65466d36a9f6db037f25a6a5 /activerecord/test/fixtures/admin | |
parent | 16ef8482699f3c23eb7c01123779484bdbfa2fa0 (diff) | |
download | rails-e59d1354e8c2983aba64dbf3dd83f03d3845ceb9.tar.gz rails-e59d1354e8c2983aba64dbf3dd83f03d3845ceb9.tar.bz2 rails-e59d1354e8c2983aba64dbf3dd83f03d3845ceb9.zip |
Fix random test failure of test_create_resets_cached_counters
- In earlier commit, I removed setting id manually for readers fixtures
but that did not fix the randomly failing
test_create_resets_cached_counters
from has_many_associations tests.
- Because the problem was with the `person_id` of the readers. As it is
set to 1 in fixtures, if a post gets created with id 1 then that post
automatically has 2 readers.
- Fixed by removing the person_id.
Diffstat (limited to 'activerecord/test/fixtures/admin')
0 files changed, 0 insertions, 0 deletions