未验证 提交 4444294c 编写于 作者: B bogdanvlviv

Fix `test_counter_cache_with_touch_and_lock_version` failure

https://travis-ci.org/rails/rails/jobs/338338927#L1043

Related to daf15f58
上级 01c54e29
......@@ -415,7 +415,9 @@ def test_counter_cache_with_touch_and_lock_version
assert_equal 1, car.lock_version
previously_car_updated_at = car.updated_at
car.wheels.first.update(size: 42)
travel(1.day) do
car.wheels.first.update(size: 42)
end
assert_equal 1, car.reload.wheels_count
assert_not_equal previously_car_updated_at, car.updated_at
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册