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

« back to all changes in this revision

Viewing changes to test/locale/fallbacks_test.rb

  • Committer: Package Import Robot
  • Author(s): Praveen Arimbrathodiyil
  • Date: 2013-06-03 19:20:31 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: package-import@ubuntu.com-20130603192031-qk11as87x3cotd1n
Tags: upstream-0.6.1
ImportĀ upstreamĀ versionĀ 0.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
  test "with a mapping :de => :en, :he => :en defined it [:he, :en] for :de" do
122
122
    assert_equal [:he, :"en-US", :en], @fallbacks[:he]
123
123
  end
 
124
 
 
125
  # Test allowing mappings that fallback to each other
 
126
 
 
127
  test "with :no => :nb, :nb => :no defined :no returns [:no, :nb, :en-US, :en]" do
 
128
    @fallbacks.map(:no => :nb, :nb => :no)
 
129
    assert_equal [:no, :nb, :"en-US", :en], @fallbacks[:no]
 
130
  end
 
131
 
 
132
  test "with :no => :nb, :nb => :no defined :nb returns [:nb, :no, :en-US, :en]" do
 
133
    @fallbacks.map(:no => :nb, :nb => :no)
 
134
    assert_equal [:nb, :no, :"en-US", :en], @fallbacks[:nb]
 
135
  end
124
136
end