Fix bug in spec/mailers/admin_spec.rb
This commit is contained in:
parent
1d672381c7
commit
c727f615eb
1 changed files with 1 additions and 1 deletions
|
@ -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) }
|
||||
|
|
Loading…
Reference in a new issue