From f455ee9f2d4d51c11f14fd211235ff8451926721 Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Wed, 24 Jan 2024 01:24:29 +0000 Subject: [PATCH] Revert "try rails native time travel" This reverts commit fbe0a7620419920b8c509a80610f53385dcb95e0. --- spec/features/comment_to_authority_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/features/comment_to_authority_spec.rb b/spec/features/comment_to_authority_spec.rb index 2b524829f..eee6b5dc4 100644 --- a/spec/features/comment_to_authority_spec.rb +++ b/spec/features/comment_to_authority_spec.rb @@ -4,7 +4,6 @@ describe "Give feedback" do include Devise::Test::IntegrationHelpers - include ActiveSupport::Testing::TimeHelpers # In order to affect the outcome of a development application # As a citizen @@ -61,7 +60,7 @@ it "renders a snapshot for a visual diff", js: true do # Note that we're ensuring that the application has a static first_date_scraped and we freeze the current # time so that the page should always have the same text on it - travel_to(Date.new(2023, 6, 1)) do + Timecop.freeze(Date.new(2023, 6, 1)) do page.percy_snapshot("Application") end end