From 4fb9ca3bc9d08fceaf8c824c8fb9ec396de7acff Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 25 Feb 2019 14:17:52 +1100 Subject: [PATCH] DEV: correct heisentest, run report at consistent time `Time.zone.now` can be any time, make this report run on a consistent time bucket every run instead of changing it each run. --- spec/models/incoming_links_report_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/models/incoming_links_report_spec.rb b/spec/models/incoming_links_report_spec.rb index 699e697d5bd..ac3ac2dd6fa 100644 --- a/spec/models/incoming_links_report_spec.rb +++ b/spec/models/incoming_links_report_spec.rb @@ -3,8 +3,7 @@ require 'rails_helper' describe IncomingLinksReport do before do - # we do not want this to fail if you run it at 11:59:59PM - freeze_time Time.zone.now + freeze_time DateTime.parse('2010-01-01 6:00') end describe 'integration' do