mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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:
committed by
Santiago Pastorino
parent
5178e64175
commit
47315760bc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user