mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Test private method timestamp_attributes_for_update
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
This commit is contained in:
committed by
Santiago Pastorino
parent
6d40d527e8
commit
253f5a15f4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user