From e2dd02893162b64dd8a55f84356011868a962fc0 Mon Sep 17 00:00:00 2001 From: Mike Phillips Date: Tue, 16 Jul 2024 22:36:28 -0500 Subject: [PATCH] 4481 Print Individual Donation PDFs hardcode all test parameters --- spec/pdfs/donation_pdf_spec.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spec/pdfs/donation_pdf_spec.rb b/spec/pdfs/donation_pdf_spec.rb index 6f49b0ee6e..21a8ee2174 100644 --- a/spec/pdfs/donation_pdf_spec.rb +++ b/spec/pdfs/donation_pdf_spec.rb @@ -1,7 +1,10 @@ describe DonationPdf do - let(:donation_site) { create(:donation_site) } + let(:donation_site) { create(:donation_site, name: "Site X", address: "1500 Remount Road, Front Royal, VA 22630", email: "test@example.com") } let(:organization) { create(:organization) } - let(:donation) { create(:donation, organization: organization, donation_site: donation_site, source: Donation::SOURCES[:donation_site]) } + let(:donation) do + create(:donation, organization: organization, donation_site: donation_site, source: Donation::SOURCES[:donation_site], + comment: "A donation comment") + end let(:item1) { FactoryBot.create(:item, name: "Item 1", package_size: 50, value_in_cents: 100) } let(:item2) { FactoryBot.create(:item, name: "Item 2", value_in_cents: 200) } let(:item3) { FactoryBot.create(:item, name: "Item 3", value_in_cents: 300) }