diff options
author | Bogdan Gusiev <agresso@gmail.com> | 2017-11-07 17:23:56 +0200 |
---|---|---|
committer | Bogdan Gusiev <agresso@gmail.com> | 2017-11-08 20:45:43 +0200 |
commit | ae6361b88c58c5dc1e86833e0299d031bb573fe1 (patch) | |
tree | a39429b4e9df6d1a3adb847ec822b281b34d3d9c /activerecord/test/fixtures | |
parent | 52d60ec46c9eba98423acfce2680e76bdc1cab36 (diff) | |
download | rails-ae6361b88c58c5dc1e86833e0299d031bb573fe1.tar.gz rails-ae6361b88c58c5dc1e86833e0299d031bb573fe1.tar.bz2 rails-ae6361b88c58c5dc1e86833e0299d031bb573fe1.zip |
Set counter caches to correct values in fixtures
Diffstat (limited to 'activerecord/test/fixtures')
-rw-r--r-- | activerecord/test/fixtures/other_posts.yml | 1 | ||||
-rw-r--r-- | activerecord/test/fixtures/posts.yml | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/other_posts.yml b/activerecord/test/fixtures/other_posts.yml index 39ff763547..3e11a33802 100644 --- a/activerecord/test/fixtures/other_posts.yml +++ b/activerecord/test/fixtures/other_posts.yml @@ -5,3 +5,4 @@ second_welcome: author_id: 1 title: Welcome to the another weblog body: It's really nice today + comments_count: 1 diff --git a/activerecord/test/fixtures/posts.yml b/activerecord/test/fixtures/posts.yml index 86d46f753a..8d7e1e0ae7 100644 --- a/activerecord/test/fixtures/posts.yml +++ b/activerecord/test/fixtures/posts.yml @@ -28,6 +28,7 @@ sti_comments: author_id: 1 title: sti comments body: hello + comments_count: 5 type: Post sti_post_and_comments: @@ -35,6 +36,7 @@ sti_post_and_comments: author_id: 1 title: sti me body: hello + comments_count: 2 type: StiPost sti_habtm: @@ -50,6 +52,8 @@ eager_other: title: eager loading with OR'd conditions body: hello type: Post + comments_count: 1 + tags_count: 3 misc_by_bob: id: 8 @@ -57,6 +61,7 @@ misc_by_bob: title: misc post by bob body: hello type: Post + tags_count: 1 misc_by_mary: id: 9 @@ -64,6 +69,7 @@ misc_by_mary: title: misc post by mary body: hello type: Post + tags_count: 1 other_by_bob: id: 10 @@ -71,6 +77,7 @@ other_by_bob: title: other post by bob body: hello type: Post + tags_count: 1 other_by_mary: id: 11 @@ -78,3 +85,4 @@ other_by_mary: title: other post by mary body: hello type: Post + tags_count: 1 |