aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/RUNNING_UNIT_TESTS.rdoc
diff options
context:
space:
mode:
authorTu Hoang <rebyn@me.com>2014-10-30 22:25:01 +0700
committerTu Hoang <rebyn@me.com>2014-10-30 22:25:01 +0700
commit9f48e75ad713a657b1e37cf22fa361ff98a4580a (patch)
treeac4aa7c8c9d2ad5637b4185b8736132889ca9267 /actionview/RUNNING_UNIT_TESTS.rdoc
parent62f96c9e1fdfa5b832073f90e1fe592fbf3163bb (diff)
downloadrails-9f48e75ad713a657b1e37cf22fa361ff98a4580a.tar.gz
rails-9f48e75ad713a657b1e37cf22fa361ff98a4580a.tar.bz2
rails-9f48e75ad713a657b1e37cf22fa361ff98a4580a.zip
Add specs for adding-to/clear has_many collections’s behavior on `updated_at`
There are behaviors mentioned in #17161 that: 1. are not documented properly, and 2. don't have specs This commit addresses the spec absence. For has_many collections, 1. addition (<<) should update the associated object's updated_at (if any) 2. .clear, depending on options[:dependent], calls delete_all, destroy_all, or nullifies the associated object(s)' foreign key.
Diffstat (limited to 'actionview/RUNNING_UNIT_TESTS.rdoc')
0 files changed, 0 insertions, 0 deletions