mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Test for email content
This commit is contained in:
@@ -23,6 +23,11 @@ RSpec.describe PaymentMailer do
|
||||
it "sets a reply-to of the customer email" do
|
||||
expect(email.reply_to).to eq([order.distributor.contact.email])
|
||||
end
|
||||
|
||||
it "includes a link to authorize the payment" do
|
||||
expect(email.text_part.body).to match "/payments/#{payment.id}/authorize"
|
||||
expect(email.html_part.body).to match "/payments/#{payment.id}/authorize"
|
||||
end
|
||||
end
|
||||
|
||||
context "authorization required email" do
|
||||
|
||||
Reference in New Issue
Block a user