Correct some missing features on the ExportSupportersCompletedJob addition
This commit is contained in:
parent
9b501c4509
commit
6ce5a43735
2 changed files with 0 additions and 16 deletions
|
@ -1,15 +0,0 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module JobTypes
|
||||
class ExportSupportersCompletedJob < EmailJob
|
||||
attr_reader :export
|
||||
|
||||
def initialize(export)
|
||||
@export = export
|
||||
end
|
||||
|
||||
def perform
|
||||
ExportMailer.export_supporters_completed_notification(@export).deliver
|
||||
end
|
||||
end
|
||||
end
|
|
@ -171,7 +171,6 @@ describe ExportSupporters do
|
|||
it 'uploads as expected' do
|
||||
Timecop.freeze(2020, 4, 5) do
|
||||
@export = create(:export, user: @user, created_at: Time.now, updated_at: Time.now)
|
||||
expect_email_queued.with(JobTypes::ExportSupportersCompletedJob, @export)
|
||||
Timecop.freeze(2020, 4, 6, 1, 2, 3) do
|
||||
expect {
|
||||
ExportSupporters.run_export(@nonprofit.id, { root_url: 'https://localhost:8080/' }.to_json, @user.id, @export.id)
|
||||
|
|
Loading…
Reference in a new issue