diff --git a/spec/models/scanned_upload_spec.rb b/spec/models/scanned_upload_spec.rb index 4faa13d..8aa8bc0 100644 --- a/spec/models/scanned_upload_spec.rb +++ b/spec/models/scanned_upload_spec.rb @@ -88,6 +88,7 @@ end it "sets the next scan to one week from now after the first week" do + freeze_time upload.created_at = 1.week.ago scanned_upload.next_scan_at = nil @@ -97,6 +98,7 @@ end it "sets the next scan to x weeks in the future where x is the number of weeks since created" do + freeze_time upload.created_at = 2.weeks.ago scanned_upload.next_scan_at = 1.day.ago