diff options
author | Brian Lopez <seniorlopez@gmail.com> | 2010-08-02 14:51:57 -0700 |
---|---|---|
committer | Brian Lopez <seniorlopez@gmail.com> | 2010-08-02 14:51:57 -0700 |
commit | ab64499911184faee11147bc1c88dd2616e848ab (patch) | |
tree | 561560d80b599750274f525d9cde81ba1e3489cb | |
parent | 954de9940b8f212cafdb9f5e97abc83d27b3e4ff (diff) | |
download | rails-ab64499911184faee11147bc1c88dd2616e848ab.tar.gz rails-ab64499911184faee11147bc1c88dd2616e848ab.tar.bz2 rails-ab64499911184faee11147bc1c88dd2616e848ab.zip |
reload the owner model after update
-rw-r--r-- | activerecord/test/cases/timestamp_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/timestamp_test.rb b/activerecord/test/cases/timestamp_test.rb index 06ab7aa9c7..a57b3dfba1 100644 --- a/activerecord/test/cases/timestamp_test.rb +++ b/activerecord/test/cases/timestamp_test.rb @@ -93,6 +93,7 @@ class TimestampTest < ActiveRecord::TestCase owner = pet.owner owner.update_attribute(:updated_at, (time = 3.days.ago)) + owner.reload toy.touch assert_not_equal time, owner.updated_at |