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.

Fix spelling in spec tests.

Matthew Kennedyd39ab7fb6c5f
diff --git a/core/spec/models/spree/menu_spec.rb b/core/spec/models/spree/menu_spec.rb
index 212e41f60d..205c702cb3 100644
--- a/core/spec/models/spree/menu_spec.rb
+++ b/core/spec/models/spree/menu_spec.rb
@@ -36,19 +36,19 @@ describe Spree::Menu, type: :model do
let!(:menu_en) { create(:menu, name: 'Main Menu EN', store: fr_store, locale: 'en') }
let!(:menu_fr) { create(:menu, name: 'Main Menu FR', store: fr_store, locale: 'fr') }
- context 'when the I18n.locale is set to a none default laguage and a menu is available' do
+ context 'when the I18n.locale is set to a none default language and a menu is available' do
it 'returns a menu in the correct locale' do
expect(described_class.for_header('en').name).to eql('Main Menu EN')
end
end
- context 'when the I18n.locale is set to a none default laguage and a menu is not available' do
+ context 'when the I18n.locale is set to a none default language and a menu is not available' do
it 'returns a menu in the current stores default locale if one is available' do
expect(described_class.for_header('de')).to be nil
end
end
- context 'when the I18n.locale is set to the default laguage and a menu is available' do
+ context 'when the I18n.locale is set to the default language and a menu is available' do
it 'returns a the default menu' do
expect(described_class.for_header('fr').name).to eql('Main Menu FR')
end