提交 253f5a15 编写于 作者: F Franck Verrot 提交者: Santiago Pastorino

Test private method timestamp_attributes_for_update

Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
上级 6d40d527
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册