require 'spec_helper'

describe "setting locale" do
  stub_authorization!

  before do
    I18n.locale = I18n.default_locale
    I18n.backend.store_translations(:fr, {
     :orders => "Ordres",
     :listing_orders => "Ordres",
     :date => {
       :month_names => [],
     }
    })
    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
    click_link "Ordres"
    page.should have_content("Ordres")
  end
end

require 'spec_helper'

describe "setting locale" do
  stub_authorization!

  before do
    I18n.locale = I18n.default_locale
    I18n.backend.store_translations(:fr,
      :date => {
        :month_names => [],
      },
      :spree => {
       :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
    click_link "Ordres"
    page.should have_content("Ordres")
  end
end

Correct translations in locale spec
[backend] Correct translations in locale spec
