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