Sha256: ff12f8c77d949daec3120861cb9b38acff5466438f718d12be4a631a04fcbc73
Contents?: true
Size: 635 Bytes
Versions: 16
Compression:
Stored size: 635 Bytes
Contents
require 'spec_helper' describe "setting locale", :type => :feature do stub_authorization! before do I18n.locale = I18n.default_locale I18n.backend.store_translations(:fr, :date => { :month_names => [], }, :spree => { :admin => { :tab => { :orders => "Ordres" } }, :listing_orders => "Ordres", }) Spree::Backend::Config[:locale] = "fr" end after do I18n.locale = I18n.default_locale Spree::Backend::Config[:locale] = "en" end it "should be in french" do visit spree.admin_path expect(page).to have_content("Ordres") end end
Version data entries
16 entries across 16 versions & 1 rubygems