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

Version Path
solidus_backend-1.2.3 spec/features/admin/locale_spec.rb
solidus_backend-1.1.4 spec/features/admin/locale_spec.rb
solidus_backend-1.0.7 spec/features/admin/locale_spec.rb
solidus_backend-1.0.6 spec/features/admin/locale_spec.rb
solidus_backend-1.2.2 spec/features/admin/locale_spec.rb
solidus_backend-1.2.1 spec/features/admin/locale_spec.rb
solidus_backend-1.1.3 spec/features/admin/locale_spec.rb
solidus_backend-1.0.5 spec/features/admin/locale_spec.rb
solidus_backend-1.2.0 spec/features/admin/locale_spec.rb
solidus_backend-1.2.0.rc2 spec/features/admin/locale_spec.rb
solidus_backend-1.0.4 spec/features/admin/locale_spec.rb
solidus_backend-1.1.2 spec/features/admin/locale_spec.rb
solidus_backend-1.2.0.rc1 spec/features/admin/locale_spec.rb
solidus_backend-1.2.0.beta1 spec/features/admin/locale_spec.rb
solidus_backend-1.0.3 spec/features/admin/locale_spec.rb
solidus_backend-1.1.1 spec/features/admin/locale_spec.rb