Test timestamp_attributes_for_update_in_model that was already in place

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
This commit is contained in:
Franck Verrot
2011-01-25 23:28:31 +01:00
committed by Santiago Pastorino
parent 5178e64175
commit 47315760bc

View File

@@ -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