test/backend/chain_test.rb in i18n-0.5.4 vs test/backend/chain_test.rb in i18n-0.6.0beta1

- old
+ new

@@ -55,9 +55,14 @@ assert_equal ['Foo', 'Bar'], I18n.t([:foo, :bar]) assert_equal ['Foo', 'Bar', 'Bah'], I18n.t([:foo, :bar, :bah], :default => 'Bah') assert_equal [{ :short => 'short', :long => 'long' }, { :one => 'one' }, 'Bah'], I18n.t([:formats, :plural_2, :bah], :default => 'Bah') end + test "store_translations options are not dropped while transfering to backend" do + @first.expects(:store_translations).with(:foo, {:bar => :baz}, {:option => 'persists'}) + I18n.backend.store_translations :foo, {:bar => :baz}, {:option => 'persists'} + end + protected def backend(translations) backend = I18n::Backend::Simple.new translations.each { |locale, data| backend.store_translations(locale, data) }