aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/timestamp_test.rb
diff options
context:
space:
mode:
authorBrian Lopez <seniorlopez@gmail.com>2010-08-02 15:10:34 -0700
committerBrian Lopez <seniorlopez@gmail.com>2010-08-02 15:10:34 -0700
commit42035fd112fb8034a706d033bfc63ee2a2797a96 (patch)
treeb619d1921e896bfba6eb454a3c355ac404160b74 /activerecord/test/cases/timestamp_test.rb
parentab64499911184faee11147bc1c88dd2616e848ab (diff)
downloadrails-42035fd112fb8034a706d033bfc63ee2a2797a96.tar.gz
rails-42035fd112fb8034a706d033bfc63ee2a2797a96.tar.bz2
rails-42035fd112fb8034a706d033bfc63ee2a2797a96.zip
move reload after touch
Diffstat (limited to 'activerecord/test/cases/timestamp_test.rb')
-rw-r--r--activerecord/test/cases/timestamp_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/timestamp_test.rb b/activerecord/test/cases/timestamp_test.rb
index a57b3dfba1..401439994d 100644
--- a/activerecord/test/cases/timestamp_test.rb
+++ b/activerecord/test/cases/timestamp_test.rb
@@ -93,8 +93,8 @@ class TimestampTest < ActiveRecord::TestCase
owner = pet.owner
owner.update_attribute(:updated_at, (time = 3.days.ago))
- owner.reload
toy.touch
+ owner.reload
assert_not_equal time, owner.updated_at
ensure