Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/pdf_filler/packet_pdf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def hash_for_fillable_pdf
# is_volunteering: @screener.volunteering?,
operating_a_homeschool: @nc_screener.teaches_homeschool_yes?,
phone_number: @screener.phone_number,
preventing_work_write_in: @screener.preventing_work_write_in,
preventing_work_write_in: @screener.preventing_work_additional_info,
preventing_work_other_write_in: @screener.preventing_work_write_in,
receiving_benefits_disability_medicaid: @screener.receiving_benefits_disability_medicaid_yes?,
receiving_benefits_disability_pension: @screener.receiving_benefits_disability_pension_yes?,
receiving_benefits_insurance_payments: @screener.receiving_benefits_insurance_payments_yes?,
Expand Down
4 changes: 3 additions & 1 deletion spec/lib/pdf_filler/packet_pdf_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
screener.confirmation_code = "ABQ39L"
nc_screener.homeschool_name = "Small Fry"
screener.preventing_work_write_in = "Back pain"
screener.preventing_work_additional_info = "I am carrying the weight of the world on my back."
screener.receiving_benefits_write_in = "Other disability"
screener.ssn_last_four = "1111"
# screener.volunteering_org_name = "Muffins for Mums"
Expand All @@ -70,7 +71,8 @@
expect(result[:email]).to eq("nigella@example.com")
expect(result[:homeschool_name]).to eq("Small Fry")
expect(result[:phone_number]).to eq("(919) 555-1234")
expect(result[:preventing_work_write_in]).to eq("Back pain")
expect(result[:preventing_work_other_write_in]).to eq("Back pain")
expect(result[:preventing_work_write_in]).to eq("I am carrying the weight of the world on my back.")
expect(result[:receiving_benefits_write_in]).to eq("Other disability")
expect(result[:ssn_last_4]).to eq("1111")
# expect(result[:volunteering_org_name]).to eq("Muffins for Mums")
Expand Down
Loading