Permalink
Browse files

Added test for chain backent store_translations bug

  • Loading branch information...
1 parent 2787e1e commit 793447124aa8c875b56049797061bae462943fb7 @pyromaniac pyromaniac committed Mar 16, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/backend/chain_test.rb
@@ -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)

0 comments on commit 7934471

Please sign in to comment.