From b230b37284eac235e53daa519ac5515d849f847a Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Tue, 16 May 2023 13:27:35 +0100 Subject: [PATCH] Update report email spec --- spec/system/admin/reports_spec.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/spec/system/admin/reports_spec.rb b/spec/system/admin/reports_spec.rb index edde70b1e1..f9c1b1eca1 100644 --- a/spec/system/admin/reports_spec.rb +++ b/spec/system/admin/reports_spec.rb @@ -77,15 +77,10 @@ describe ' visit admin_report_path( report_type: :customers, report_subtype: :mailing_list ) - allow(ENV).to receive(:fetch).and_call_original - expect(ENV).to receive(:fetch).with("RACK_TIMEOUT_SERVICE_TIMEOUT", "15") - .and_return("-1") # Negative values time out immediately. stub_const("ReportJob::NOTIFICATION_TIME", 0) click_button "Go" - expect(page).to have_content "report is taking longer" - perform_enqueued_jobs(only: ReportJob) # We also get an email.