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

« back to all changes in this revision

Viewing changes to lib/i18n/tests/localization/time.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:
43
43
        end
44
44
 
45
45
        test "localize Time: given a meridian indicator format it returns the correct meridian indicator" do
46
 
          assert_equal 'am', I18n.l(@time, :format => '%p', :locale => :de)
47
 
          assert_equal 'pm', I18n.l(@other_time, :format => '%p', :locale => :de)
 
46
          assert_equal 'AM', I18n.l(@time, :format => '%p', :locale => :de)
 
47
          assert_equal 'PM', I18n.l(@other_time, :format => '%p', :locale => :de)
 
48
        end
 
49
 
 
50
        test "localize Time: given a meridian indicator format it returns the correct meridian indicator in upcase" do
 
51
          assert_equal 'am', I18n.l(@time, :format => '%P', :locale => :de)
 
52
          assert_equal 'pm', I18n.l(@other_time, :format => '%P', :locale => :de)
48
53
        end
49
54
 
50
55
        test "localize Time: given an unknown format it does not fail" do