Skip to content

Commit

Permalink
general save
Browse files Browse the repository at this point in the history
  • Loading branch information
SamStuckey committed Oct 24, 2024
1 parent 2a71dd8 commit a01de12
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spec/sidekiq/form526_submission_failure_email_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

describe '#perform' do
context 'when a user has additional form and files with their submission' do
let!(:form526_submission) { create(:form526_submission, :with_uploads_and_ancillary_forms) }
let!(:form526_submission) { create(:form526_submission, :with_uploads_and_ancillary_forms) }

let(:expected_params) do
{
Expand Down Expand Up @@ -54,12 +54,6 @@

context 'when a user has no additional additional forms their submission' do
let!(:form526_submission) { create(:form526_submission, :with_uploads) }
before do
form526_submission.form['form526_uploads'].each do |upload|
create(:supporting_evidence_attachment, :with_file_data, guid: upload['confirmationCode'])
end
end

let(:expected_params) do
{
email_address: 'test@email.com',
Expand All @@ -73,6 +67,12 @@
}
end

before do
form526_submission.form['form526_uploads'].each do |upload|
create(:supporting_evidence_attachment, :with_file_data, guid: upload['confirmationCode'])
end
end

it 'replaces the forms list variable with a placeholder' do
expect(email_service).to receive(:send_email).with(expected_params)

Expand Down

0 comments on commit a01de12

Please sign in to comment.