~ubuntu-branches/ubuntu/vivid/ruby-i18n/vivid

« back to all changes in this revision

Viewing changes to lib/i18n/tests/localization/procs.rb

  • Committer: Package Import Robot
  • Author(s): Jonas Genannt
  • Date: 2013-11-27 19:26:54 UTC
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: package-import@ubuntu.com-20131127192654-ihh1sn3y680fvh29
Tags: upstream-0.6.5
ImportĀ upstreamĀ versionĀ 0.6.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
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)
 
30
          date = ::Date.new(2008, 3, 1)
31
31
          assert_equal '[Sat, 01 Mar 2008, {}]', I18n.l(date, :format => :proc, :locale => :ru)
32
32
        end
33
33
 
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)
 
36
          date = ::Date.new(2008, 3, 1)
37
37
          assert_equal '[Sat, 01 Mar 2008, {:foo=>"foo"}]', I18n.l(date, :format => :proc, :foo => 'foo', :locale => :ru)
38
38
        end
39
39