spec/ruby/i18n/js/fallback_locales_spec.rb in i18n-js-3.0.11 vs spec/ruby/i18n/js/fallback_locales_spec.rb in i18n-js-3.1.0
- old
+ new
@@ -53,13 +53,13 @@
# I18n::Backend::Fallbacks
context "when I18n::Backend::Fallbacks is used" do
let(:backend_with_fallbacks) { backend_class_with_fallbacks.new }
before do
- I18n.backend = backend_with_fallbacks
+ I18n::JS.backend = backend_with_fallbacks
I18n.fallbacks[:fr] = [:de, :en]
end
- after { I18n.backend = I18n::Backend::Simple.new }
+ after { I18n::JS.backend = I18n::Backend::Simple.new }
context "given true as fallbacks" do
let(:fallbacks) { true }
it { should eq([:de, :en]) }
end