diff --git a/core/config/locales/en.yml b/core/config/locales/en.yml index a81e18ed11..abff6b65f7 100644 --- a/core/config/locales/en.yml +++ b/core/config/locales/en.yml @@ -491,10 +491,10 @@ en: spree/wallet_payment_source: attributes: payment_source: - has_to_be_payment_source_class: has to be a Spree::PaymentSource - not_owned_by_user: does not belong to user + has_to_be_payment_source_class: is not a valid payment source + not_owned_by_user: does not belong to the user associated with the order user_id: - payment_source_already_exists: already has the Spree::PaymentSource in their wallet + payment_source_already_exists: already has this payment source in their wallet models: spree/address: one: Address diff --git a/core/spec/models/spree/wallet_payment_source_spec.rb b/core/spec/models/spree/wallet_payment_source_spec.rb index 5eb97f56b8..a325276e13 100644 --- a/core/spec/models/spree/wallet_payment_source_spec.rb +++ b/core/spec/models/spree/wallet_payment_source_spec.rb @@ -26,7 +26,7 @@ expect(wallet_payment_source).not_to be_valid expect(wallet_payment_source.errors.messages).to eq( - { payment_source: ["has to be a Spree::PaymentSource"] } + { payment_source: ["is not a valid payment source"] } ) end end @@ -43,7 +43,7 @@ ) expect(wallet_payment_source).not_to be_valid expect(wallet_payment_source.errors.messages).to eq( - { user_id: ["already has the Spree::PaymentSource in their wallet"] } + { user_id: ["already has this payment source in their wallet"] } ) end @@ -54,7 +54,7 @@ ) expect(wallet_payment_source).not_to be_valid expect(wallet_payment_source.errors.messages).to eq( - { payment_source: ["does not belong to user"] } + { payment_source: ["does not belong to the user associated with the order"] } ) end