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.

Removed outdated xited tests

Damian Legawiec58e7f2beac2e
diff --git a/frontend/spec/controllers/controller_helpers_spec.rb b/frontend/spec/controllers/controller_helpers_spec.rb
index a573e76173..74a5211d2a 100644
--- a/frontend/spec/controllers/controller_helpers_spec.rb
+++ b/frontend/spec/controllers/controller_helpers_spec.rb
@@ -83,30 +83,4 @@ describe Spree::ProductsController, type: :controller do
end
end
end
-
- context 'when session locale is set' do
- context 'and not in available_locales' do
- before do
- session[:locale] = unavailable_locale
- end
-
- it 'sets the I18n default locale' do
- get :index
- expect(I18n.locale).to eq(I18n.default_locale)
- end
- end
-
- context 'and in available_locales' do
- before do
- session[:locale] = available_locale
- end
-
- # FIXME: after adding supported_locales to Store this should be testable again
- xit 'sets the session locale' do
- expect(I18n.locale).to eq(:en)
- get :index
- expect(I18n.locale).to eq(available_locale)
- end
- end
- end
end