Sha256: 8179a6291d3fc46b6440c5197104cf6ab64fc12ddda02901f2eb73f54d3a961c
Contents?: true
Size: 590 Bytes
Versions: 1
Compression:
Stored size: 590 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe 'setting locale', type: :system do let!(:store) { create(:store) } def with_locale(locale) I18n.locale = locale stub_spree_preferences(SolidusStarterFrontend::Config, locale: locale) yield ensure I18n.locale = I18n.default_locale end context 'shopping cart link and page' do include_context "fr locale" it 'should be in french' do with_locale('fr') do visit spree.root_path click_link 'Panier' expect(page).to have_content('Panier') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_starter_frontend-0.1.0 | spec/system/locale_spec.rb |