diff options
author | Franck Verrot <franck@verrot.fr> | 2011-01-25 23:21:33 +0100 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-02-02 12:44:25 -0200 |
commit | 253f5a15f42720ddc2cf6cd7e982fe3e0dc65f52 (patch) | |
tree | a08b601e6568ae783bc9d02022c51fba1fb5e606 /activerecord | |
parent | 6d40d527e896038767272eca3a6357e6998b985e (diff) | |
download | rails-253f5a15f42720ddc2cf6cd7e982fe3e0dc65f52.tar.gz rails-253f5a15f42720ddc2cf6cd7e982fe3e0dc65f52.tar.bz2 rails-253f5a15f42720ddc2cf6cd7e982fe3e0dc65f52.zip |
Test private method timestamp_attributes_for_update
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activerecord')
-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 1970bf0a5d..26c04c47b9 100644 --- a/activerecord/test/cases/timestamp_test.rb +++ b/activerecord/test/cases/timestamp_test.rb @@ -145,4 +145,9 @@ class TimestampTest < ActiveRecord::TestCase toy = Toy.first assert_equal toy.send(:timestamp_attributes_for_create), [:created_at, :created_on] end + + def test_timestamp_attributes_for_update + toy = Toy.first + assert_equal toy.send(:timestamp_attributes_for_update), [:updated_at, :updated_on] + end end |