DEV: correct heisentest, run report at consistent time

approved
heisentest
#1

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.

diff --git a/spec/models/incoming_links_report_spec.rb b/spec/models/incoming_links_report_spec.rb
index 699e697..ac3ac2d 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

GitHub sha: 4fb9ca3b

1 Like
Approved #2