Skip to content

Commit

Permalink
4481 Print Individual Donation PDFs hardcode all test parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
mdphillips375 committed Jul 17, 2024
1 parent 595b819 commit e2dd028
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions spec/pdfs/donation_pdf_spec.rb
Original file line number Diff line number Diff line change
@@ -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) }
Expand Down

0 comments on commit e2dd028

Please sign in to comment.