mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-27 06:05:19 +00:00
Update report email spec
This commit is contained in:
committed by
Maikel Linke
parent
524d1f0264
commit
b230b37284
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user