From 8aabefb0b757f9ee1648f5a9399b4d0b81bc16c0 Mon Sep 17 00:00:00 2001 From: Dmitriy Kiriyenko Date: Mon, 6 Jun 2011 10:30:34 +0300 Subject: [PATCH] This way asserting that updated_at was changed in touch look more obvious. --- activerecord/test/cases/timestamp_test.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/activerecord/test/cases/timestamp_test.rb b/activerecord/test/cases/timestamp_test.rb index c0f1b5895e..8dd563184b 100644 --- a/activerecord/test/cases/timestamp_test.rb +++ b/activerecord/test/cases/timestamp_test.rb @@ -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