diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2015-12-13 22:47:47 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2015-12-13 22:47:47 -0300 |
commit | 0b224ddd552dbe87280dfdd1eb7a8f25d7d4e062 (patch) | |
tree | b7ed15a1aebe65c2e0b4ad473ca1b57180dc9af1 | |
parent | 9712a7a12b7f9e4dcef751ceda8a73c3f4beb11f (diff) | |
parent | f4e3eca90c6db7c058135783cbabd6e4791a8368 (diff) | |
download | rails-0b224ddd552dbe87280dfdd1eb7a8f25d7d4e062.tar.gz rails-0b224ddd552dbe87280dfdd1eb7a8f25d7d4e062.tar.bz2 rails-0b224ddd552dbe87280dfdd1eb7a8f25d7d4e062.zip |
Merge pull request #22571 from mtsmfm/travel-back
travel back
-rw-r--r-- | activerecord/test/cases/touch_later_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/touch_later_test.rb b/activerecord/test/cases/touch_later_test.rb index 07dbb4b8f8..b47769eed7 100644 --- a/activerecord/test/cases/touch_later_test.rb +++ b/activerecord/test/cases/touch_later_test.rb @@ -100,9 +100,9 @@ class TouchLaterTest < ActiveRecord::TestCase previous_parent_updated_at = nodes(:parent_a).updated_at previous_child_updated_at = nodes(:child_one_of_a).updated_at - travel 5.seconds - - Node.create! parent: nodes(:child_one_of_a), tree: trees(:root) + travel 5.seconds do + Node.create! parent: nodes(:child_one_of_a), tree: trees(:root) + end assert_not_equal nodes(:child_one_of_a).reload.updated_at, previous_child_updated_at assert_not_equal nodes(:parent_a).reload.updated_at, previous_parent_updated_at |