File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments