Speed up spec by not saving to database

This commit is contained in:
Maikel Linke
2026-02-06 12:03:48 +11:00
parent 69108df206
commit b6438992b9

View File

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