mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
Speed up spec by not saving to database
This commit is contained in:
@@ -43,8 +43,8 @@ RSpec.describe PaymentMailer do
|
||||
|
||||
describe "#refund_available" do
|
||||
it "tells the user to accept a refund" do
|
||||
payment = create(:payment)
|
||||
payment.order.distributor = create(:enterprise, name: "Carrot Castle")
|
||||
payment = build(:payment)
|
||||
payment.order.distributor = build(:enterprise, name: "Carrot Castle")
|
||||
link = "https://taler.example.com/order/1"
|
||||
mail = PaymentMailer.refund_available(payment, link)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user