spec/spec_helper.rb in i18n-js-3.0.0.rc7 vs spec/spec_helper.rb in i18n-js-3.0.0.rc8

- old
+ new

@@ -22,9 +22,18 @@ end def temp_path(file_name = "") File.expand_path("../../tmp/i18n-js/#{file_name}", __FILE__) end + + + def self.included(base) + base.let(:backend_class_with_fallbacks) do + klass = Class.new(I18n::Backend::Simple) + klass.send(:include, I18n::Backend::Fallbacks) + klass + end + end end RSpec.configure do |config| config.before do I18n.load_path = [File.dirname(__FILE__) + "/fixtures/locales.yml"]