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 locale_spec.rb

Damian Legawiec7df49a2e8e42
diff --git a/core/spec/lib/spree/core/controller_helpers/locale_spec.rb b/core/spec/lib/spree/core/controller_helpers/locale_spec.rb
index 80e76008f7..181d996a77 100644
--- a/core/spec/lib/spree/core/controller_helpers/locale_spec.rb
+++ b/core/spec/lib/spree/core/controller_helpers/locale_spec.rb
@@ -81,6 +81,8 @@ describe Spree::Core::ControllerHelpers::Locale, type: :controller do
context 'different than store locale' do
before { I18n.locale = :de }
+ after { I18n.locale = :en }
+
it { expect(controller.locale_param).to eq('de') }
end
end