From c727f615ebd700b123a316502d93f07c8589b11e Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 20 May 2020 17:05:06 -0500 Subject: [PATCH] Fix bug in spec/mailers/admin_spec.rb --- spec/mailers/admin_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/mailers/admin_spec.rb b/spec/mailers/admin_spec.rb index b6f130f9..ac25b390 100644 --- a/spec/mailers/admin_spec.rb +++ b/spec/mailers/admin_spec.rb @@ -11,7 +11,7 @@ RSpec.describe AdminMailer, type: :mailer do let!(:donation) { force_create(:donation, nonprofit_id: np.id, supporter_id: s.id, card_id: oldcard.id, amount: 999) } let!(:charge) { create(:charge, donation: donation, nonprofit: np, amount: 100, created_at: Time.now) } let(:campaign) { force_create(:campaign, nonprofit: np) } - let!(:campaign_gift_option_with_desc) { force_create(:campaign_gift_option, description: 'desc', amount_one_time: ``, campaign: campaign) } + let!(:campaign_gift_option_with_desc) { force_create(:campaign_gift_option, description: 'desc', amount_one_time: 999, campaign: campaign) } let!(:campaign_gift_option) { force_create(:campaign_gift_option, campaign: campaign) } let(:mail) { AdminMailer.notify_failed_gift(donation, campaign_gift_option) } let(:mail_with_desc) { AdminMailer.notify_failed_gift(donation, campaign_gift_option_with_desc) }