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:
parent
7c1f73c843
commit
8aabefb0b7
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue