Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Lil chain backend fix #85

Closed
wants to merge 2 commits into
from
Jump to file or symbol
Failed to load files and symbols.
+6 −1
Split
@@ -29,7 +29,7 @@ def reload!
end
def store_translations(locale, data, options = {})
- backends.first.store_translations(locale, data, options = {})
+ backends.first.store_translations(locale, data, options)
end
def available_locales
@@ -57,6 +57,11 @@ def setup
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)