diff options
author | Fumiaki MATSUSHIMA <mtsmfm@gmail.com> | 2015-12-13 11:29:37 +0900 |
---|---|---|
committer | Fumiaki MATSUSHIMA <mtsmfm@gmail.com> | 2015-12-13 11:34:40 +0900 |
commit | f4e3eca90c6db7c058135783cbabd6e4791a8368 (patch) | |
tree | 694357c58e70669778f85e1b3b3b6e7c50d0d81f /activerecord | |
parent | cd355a8eeb676d172a1b9fa9855cb2531bd1b4e5 (diff) | |
download | rails-f4e3eca90c6db7c058135783cbabd6e4791a8368.tar.gz rails-f4e3eca90c6db7c058135783cbabd6e4791a8368.tar.bz2 rails-f4e3eca90c6db7c058135783cbabd6e4791a8368.zip |
travel back
Diffstat (limited to 'activerecord')
-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 |