Update flash message with instruction to update the quantities

This commit is contained in:
Matt-Yorkley
2020-05-19 20:22:38 +02:00
parent e3c337ef7e
commit 6b3a7228ce
2 changed files with 3 additions and 3 deletions

View File

@@ -3409,7 +3409,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using
format: ! '%Y-%m-%d'
js_format: 'yy-mm-dd'
orders:
error_flash_for_unavailable_items: "An item in your cart has become unavailable."
error_flash_for_unavailable_items: "An item in your cart has become unavailable. Please update the selected quantities."
edit:
login_to_view_order: "Please log in to view your order."
bought:

View File

@@ -161,7 +161,7 @@ describe Spree::OrdersController, type: :controller do
it "displays a flash message when we view the cart" do
spree_get :edit
expect(response.status).to eq 200
expect(flash[:error]).to eq("An item in your cart has become unavailable.")
expect(flash[:error]).to eq I18n.t('spree.orders.error_flash_for_unavailable_items')
end
end
@@ -173,7 +173,7 @@ describe Spree::OrdersController, type: :controller do
it "displays a flash message when we view the cart" do
spree_get :edit
expect(response.status).to eq 200
expect(flash[:error]).to eq("An item in your cart has become unavailable.")
expect(flash[:error]).to eq I18n.t('spree.orders.error_flash_for_unavailable_items')
end
end
end