1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

This commit is contained in:
Dmitriy Kiriyenko 2011-06-06 10:30:34 +03:00 committed by Jon Leighton
parent 7c1f73c843
commit 8aabefb0b7

View file

@ -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