Improve error message, and use the same than the view

This commit is contained in:
Jean-Baptiste Bellet
2023-02-14 09:45:15 +01:00
parent 88607a3dce
commit 4cea7b1957
2 changed files with 3 additions and 3 deletions

View File

@@ -27,9 +27,9 @@ en:
spree/shipping_method: Shipping Method
attributes:
spree/order/ship_address:
address1: "Shipping address line 1"
address1: "Shipping address (Street + House number)"
address2: "Shipping address line 2"
city: "Shipping address suburb 1"
city: "Shipping address city"
country: "Shipping address country"
phone: "Phone number"
firstname: "First name"

View File

@@ -12,7 +12,7 @@ describe Spree::Order do
it "provides friendly error messages" do
order.ship_address = Spree::Address.new
order.save
expect(order.errors.full_messages).to include "Shipping address line 1 can't be blank"
expect(order.errors.full_messages).to include "Shipping address (Street + House number) can't be blank"
end
it "provides friendly error messages for bill address" do