Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
refactor update account spec
KacperMekarski1a49d76aaeb3
diff --git a/core/spec/services/spree/account/update_spec.rb b/core/spec/services/spree/account/update_spec.rbindex c7d6b251e1..20120ea08d 100644--- a/core/spec/services/spree/account/update_spec.rb+++ b/core/spec/services/spree/account/update_spec.rb@@ -49,10 +49,10 @@ module Spree}end- it_should_behave_like 'user not created'- it_should_behave_like 'successful response'- it_should_behave_like 'updated attributes'- it_should_behave_like 'both default addresses changed'+ it_behaves_like 'user not created'+ it_behaves_like 'successful response'+ it_behaves_like 'updated attributes'+ it_behaves_like 'both default addresses changed'endcontext 'when only address params are given' do@@ -63,10 +63,10 @@ module Spree}end- it_should_behave_like 'user not created'- it_should_behave_like 'successful response'- it_should_behave_like 'updated attributes'- it_should_behave_like 'both default addresses changed'+ it_behaves_like 'user not created'+ it_behaves_like 'successful response'+ it_behaves_like 'updated attributes'+ it_behaves_like 'both default addresses changed'context 'when only bill address is given' dolet(:user_params) do@@ -75,9 +75,9 @@ module Spree}end- it_should_behave_like 'user not created'- it_should_behave_like 'successful response'- it_should_behave_like 'updated attributes'+ it_behaves_like 'user not created'+ it_behaves_like 'successful response'+ it_behaves_like 'updated attributes'it 'changes only user default bill address' doexpect(user.bill_address).not_to eq(new_default_bill_address)@@ -95,9 +95,9 @@ module Spree}end- it_should_behave_like 'user not created'- it_should_behave_like 'successful response'- it_should_behave_like 'updated attributes'+ it_behaves_like 'user not created'+ it_behaves_like 'successful response'+ it_behaves_like 'updated attributes'it 'changes only user default ship address' doexpect(user.bill_address).not_to eq(new_default_bill_address)@@ -114,8 +114,8 @@ module Spree{}end- it_should_behave_like 'user not created'- it_should_behave_like 'successful response'+ it_behaves_like 'user not created'+ it_behaves_like 'successful response'it 'does not change user data at all' doexpect(value).to have_attributes(user.attributes)