mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
Improve error message, and use the same than the view
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user