Permalink
Browse files

reload the owner model after update

  • Loading branch information...
brianmario committed Aug 2, 2010
1 parent 954de99 commit ab64499911184faee11147bc1c88dd2616e848ab
Showing with 1 addition and 0 deletions.
  1. +1 −0 activerecord/test/cases/timestamp_test.rb
@@ -93,6 +93,7 @@ def test_touching_a_record_touches_parent_record_and_grandparent_record
owner = pet.owner
owner.update_attribute(:updated_at, (time = 3.days.ago))
+ owner.reload
toy.touch
assert_not_equal time, owner.updated_at

0 comments on commit ab64499

Please sign in to comment.