13221 Add spec for checking flash error is shown when editing a shipped order

This commit is contained in:
Ashish Gaur
2025-05-05 20:37:59 +05:30
parent 4d01b2b976
commit 5fc3fe03ee
2 changed files with 12 additions and 1 deletions

View File

@@ -165,7 +165,7 @@ module Spree
def refuse_changing_shipped_orders
return unless @order.shipped?
flash[:error] = I18n.t("admin.orders.cannot_add_item_to_shipped_order")
flash[:error] = I18n.t("spree.admin.orders.add_product.cannot_add_item_to_shipped_order")
redirect_to spree.edit_admin_order_path(@order)
end