From 6ee1c8ca29f9b9d34b85d6912bd84abd8dec5ce7 Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Wed, 26 Mar 2025 08:59:35 +0000 Subject: [PATCH] Asserts that the order cancellation email for shops has the customer's email as reply to address --- spec/mailers/order_mailer_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/mailers/order_mailer_spec.rb b/spec/mailers/order_mailer_spec.rb index a991f8659d..966190d320 100644 --- a/spec/mailers/order_mailer_spec.rb +++ b/spec/mailers/order_mailer_spec.rb @@ -150,6 +150,10 @@ RSpec.describe Spree::OrderMailer do it "includes a link to the cancelled order in admin" do expect(mail.body).to match /#{admin_order_link_href}/ end + + it "sets a reply-to of the customer email" do + expect(mail.reply_to).to eq([order.email]) + end end describe "order confimation" do