aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorDmitriy Kiriyenko <dmitriy.kiriyenko@gmail.com>2011-06-06 10:30:34 +0300
committerJon Leighton <j@jonathanleighton.com>2011-06-07 18:42:40 +0100
commit8aabefb0b757f9ee1648f5a9399b4d0b81bc16c0 (patch)
treee3f1b99b904f8972a78c14bb6b9d72ceae07934a /activerecord
parent7c1f73c843310a3dd0cee179f56ffdc7c859eaa0 (diff)
downloadrails-8aabefb0b757f9ee1648f5a9399b4d0b81bc16c0.tar.gz
rails-8aabefb0b757f9ee1648f5a9399b4d0b81bc16c0.tar.bz2
rails-8aabefb0b757f9ee1648f5a9399b4d0b81bc16c0.zip
This way asserting that updated_at was changed in touch look more obvious.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/timestamp_test.rb1
1 files changed, 1 insertions, 0 deletions
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