Test private method timestamp_attributes_for_update
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
This commit is contained in:
parent
6d40d527e8
commit
253f5a15f4
@ -145,4 +145,9 @@ def test_timestamp_attributes_for_create
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user