From 98cba128e081da4785f81bf8171a94222470cb0d Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Wed, 26 Mar 2025 09:41:16 +0000 Subject: [PATCH] Asserts that the invoice email has the distributors email as reply to address --- spec/mailers/order_mailer_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/mailers/order_mailer_spec.rb b/spec/mailers/order_mailer_spec.rb index 3214c808ee..345ad9247a 100644 --- a/spec/mailers/order_mailer_spec.rb +++ b/spec/mailers/order_mailer_spec.rb @@ -271,6 +271,7 @@ RSpec.describe Spree::OrderMailer do expect(deliveries.count).to eq(1) expect(deliveries.first.attachments.count).to eq(1) expect(deliveries.first.attachments.first.filename).to eq(attachment_filename) + expect(email.reply_to).to eq([order.distributor.contact.email]) end end