28
28
test "localize Date: given a format that resolves to a Proc it calls the Proc with the object" do
29
29
setup_time_proc_translations
30
date = ::Date.new(2008, 3, 1, 6)
31
31
assert_equal '[Sat, 01 Mar 2008, {}]', I18n.l(date, :format => :proc, :locale => :ru)
34
34
test "localize Date: given a format that resolves to a Proc it calls the Proc with the object and extra options" do
35
35
setup_time_proc_translations
36
date = ::Date.new(2008, 3, 1, 6)
37
37
assert_equal '[Sat, 01 Mar 2008, {:foo=>"foo"}]', I18n.l(date, :format => :proc, :foo => 'foo', :locale => :ru)