diff --git a/app/jobs/scheme_email_csv_job_spec.rb b/app/jobs/scheme_email_csv_job_spec.rb index a25abddbe..a43cfc61b 100644 --- a/app/jobs/scheme_email_csv_job_spec.rb +++ b/app/jobs/scheme_email_csv_job_spec.rb @@ -11,7 +11,7 @@ describe SchemeEmailCsvJob do let(:mailer) { instance_double(CsvDownloadMailer) } let(:scheme_csv_service) { instance_double(Csv::SchemeCsvService) } let(:search_term) { "meaning" } - let(:filters) { { "user" => "you", "status" => %w[in_progress] } } + let(:filters) { { "owning_organisation" => organisation.id, "status" => %w[active] } } let(:all_orgs) { false } let(:organisation) { build(:organisation) } let(:download_type) { "combined" }