diff options
author | Franck Verrot <franck@verrot.fr> | 2011-01-25 23:28:31 +0100 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-02-02 12:45:03 -0200 |
commit | 47315760bc893a48738e6592a0cbb3fef506bcd7 (patch) | |
tree | 86cd9d80bc2bf65aefcdd9f1689d20d57b198cc4 | |
parent | 5178e641750d4e3f8419c8e6cf3ab7e7cb48a880 (diff) | |
download | rails-47315760bc893a48738e6592a0cbb3fef506bcd7.tar.gz rails-47315760bc893a48738e6592a0cbb3fef506bcd7.tar.bz2 rails-47315760bc893a48738e6592a0cbb3fef506bcd7.zip |
Test timestamp_attributes_for_update_in_model that was already in place
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
-rw-r--r-- | activerecord/test/cases/timestamp_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/cases/timestamp_test.rb b/activerecord/test/cases/timestamp_test.rb index 428dfedef2..62e3a084d0 100644 --- a/activerecord/test/cases/timestamp_test.rb +++ b/activerecord/test/cases/timestamp_test.rb @@ -160,4 +160,9 @@ class TimestampTest < ActiveRecord::TestCase toy = Toy.first assert_equal toy.send(:timestamp_attributes_for_create_in_model), [:created_at] end + + def test_timestamp_attributes_for_update_in_model + toy = Toy.first + assert_equal toy.send(:timestamp_attributes_for_update_in_model), [:updated_at] + end end |