Fix the link to the order in the order cancelled email.

This commit is contained in:
Cillian O'Ruanaidh
2021-01-29 14:14:11 +00:00
parent 899dffec96
commit 0cfd7de8a8
2 changed files with 2 additions and 2 deletions

View File

@@ -4,4 +4,4 @@
%p
= t('spree.order_mailer.cancel_email_for_shop.intro', number: @order.number)
= link_to t('spree.order_mailer.cancel_email_for_shop.view_cancelled_order'), spree.admin_order_url(@order)
= link_to t('spree.order_mailer.cancel_email_for_shop.view_cancelled_order'), spree.edit_admin_order_url(@order)

View File

@@ -80,7 +80,7 @@ describe Spree::OrderMailer do
describe "#cancel_email_for_shop" do
let(:distributor) { create(:distributor_enterprise) }
let(:order) { create(:order, distributor: distributor, state: "canceled") }
let(:admin_order_link_href) { "href=\"#{spree.admin_order_url(order)}\"" }
let(:admin_order_link_href) { "href=\"#{spree.edit_admin_order_url(order)}\"" }
let(:mail) { Spree::OrderMailer.cancel_email_for_shop(order) }
it "sends an email to the distributor" do