Skip to content

Commit 533db81

Browse files
feat: change name of PDF from work requirements to getbenefitshelp [WRSAT-524] (#250)
1 parent 6acef22 commit 533db81

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/mailers/screener_mailer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class ScreenerMailer < ApplicationMailer
44
def send_screener_results(outgoing_email:)
55
@screener = outgoing_email.screener
66
attachments.inline["gbh_email_header.png"] = File.binread(Rails.root.join("app/assets/images/gbh_email_header.png"))
7-
attachments["work_requirements.pdf"] = {
7+
attachments["getbenefitshelp.pdf"] = {
88
mime_type: "application/pdf",
99
content: PdfFiller::PacketPdf.new(@screener).combined_pdf
1010
}

spec/mailers/screener_mailer_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
end
8484

8585
it "attaches the work requirements PDF" do
86-
pdf_attachment = mail.attachments["work_requirements.pdf"]
86+
pdf_attachment = mail.attachments["getbenefitshelp.pdf"]
8787
expect(pdf_attachment).to be_present
8888
expect(pdf_attachment.content_type).to start_with("application/pdf")
8989
expect(pdf_attachment.body.decoded).not_to be_empty

0 commit comments

Comments
 (0)