diff --git a/.bundle/config b/.bundle/config new file mode 100644 index 00000000..2fbf0ffd --- /dev/null +++ b/.bundle/config @@ -0,0 +1 @@ +--- {} diff --git a/spec/features/admin/translations_spec.rb b/spec/features/admin/translations_spec.rb index 6fa49a2d..ea1b36bf 100644 --- a/spec/features/admin/translations_spec.rb +++ b/spec/features/admin/translations_spec.rb @@ -55,15 +55,13 @@ end context 'solidus_auth_devise pages translation' do - let(:locale) { :it } - background do - SolidusI18n::Config.available_locales = [:en, :it] + store.update_attributes(preferred_available_locales: [:en, :it]) end scenario 'the login page is translated' do - visit spree.admin_login_path(locale: locale) - expect(page).to have_content(/#{Spree.t(:admin_login, locale: locale)}/i) + visit spree.admin_login_path(locale: "it") + expect(page).to have_content(/#{Spree.t(:admin_login, locale: :it)}/i) end end end