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) }