提交 8aabefb0 编写于 作者: D Dmitriy Kiriyenko 提交者: Jon Leighton

This way asserting that updated_at was changed in touch look more obvious.

上级 7c1f73c8
......@@ -11,6 +11,7 @@ class TimestampTest < ActiveRecord::TestCase
def setup
@developer = Developer.first
@developer.update_attribute(:updated_at, Time.now.prev_month)
@previously_updated_at = @developer.updated_at
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册