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.