mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Add explanatory comments on usages of Timecop.travel
This commit is contained in:
@@ -18,6 +18,7 @@ feature "Shops caching", js: true, caching: true do
|
||||
end
|
||||
|
||||
it "keeps data cached for a short time on subsequent requests" do
|
||||
# Ensure sufficient time for requests to load and timed caches to expire
|
||||
Timecop.travel(10.minutes.ago) do
|
||||
visit shops_path
|
||||
|
||||
@@ -65,6 +66,7 @@ feature "Shops caching", js: true, caching: true do
|
||||
end
|
||||
|
||||
it "keeps data cached for a short time on subsequent requests" do
|
||||
# Ensure sufficient time for requests to load and timed caches to expire
|
||||
Timecop.travel(10.minutes.ago) do
|
||||
visit enterprise_shop_path(distributor)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user