Skip to content

armgit / spree

Public Imported from GitHub
0

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.

Update api/spec/serializers/spree/api/v2/platform/user_serializer_spec.rb

Weronika Witek02f1ef916649
diff --git a/api/spec/serializers/spree/api/v2/platform/user_serializer_spec.rb b/api/spec/serializers/spree/api/v2/platform/user_serializer_spec.rb
index bad669aa95..a78ab0fc34 100644
--- a/api/spec/serializers/spree/api/v2/platform/user_serializer_spec.rb
+++ b/api/spec/serializers/spree/api/v2/platform/user_serializer_spec.rb
@@ -75,7 +75,7 @@ describe Spree::Api::V2::Platform::UserSerializer do
context 'when user has selected non default locale' do
let(:user) { create(:user_with_addresses, selected_locale: 'fr') }
- it do
+ it 'returns the selected locale in the serialized hash' do
expect(subject.serializable_hash[:data][:attributes][:selected_locale]).to eq('fr')
end
end