Sha256: 43b590ec5aefe857528d9726eb0a76104cdd0a7bc4cb6cd6bb7953d838e2eb1a
Contents?: true
Size: 787 Bytes
Versions: 12
Compression:
Stored size: 787 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe "setting locale", type: :feature do stub_authorization! before do ActionView::Base.raise_on_missing_translations = false I18n.locale = I18n.default_locale I18n.backend.store_translations(:fr, date: { month_names: [] }, spree: { i18n: { this_file_language: "Français" }, admin: { tab: { orders: "Ordres" } }, listing_orders: "Ordres" }) stub_spree_preferences(Spree::Backend::Config, locale: "fr") end after do I18n.locale = I18n.default_locale ActionView::Base.raise_on_missing_translations = true end it "should be in french" do visit spree.admin_path expect(page).to have_content("Ordres") end end
Version data entries
12 entries across 12 versions & 1 rubygems