Sha256: 08ade6ac84a79bcc643706582c119e0a5d8953fd23ab81cacc0339c4a2c80e79

Contents?: true

Size: 497 Bytes

Versions: 8

Compression:

Stored size: 497 Bytes

Contents

# encoding: UTF-8

# Copyright 2012 Twitter, Inc
# http://www.apache.org/licenses/LICENSE-2.0

require 'spec_helper'

describe TwitterCldr::Utils::Territories do
  describe "#deep_normalize_territory_code_keys" do
    TwitterCldr::Utils::Territories.deep_normalize_territory_code_keys(
      { "is" => [ { "US" => "United States",
                    5 => "Suður-Ameríka" },
                  { "009" => "Eyjaálfa" } ] }
    ).should == { :is => [ { :us => "United States" }, { } ] }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
twitter_cldr-2.4.3 spec/utils/territories_spec.rb
twitter_cldr-3.0.0.beta1 spec/utils/territories_spec.rb
twitter_cldr-2.4.2 spec/utils/territories_spec.rb
twitter_cldr-2.4.1 spec/utils/territories_spec.rb
twitter_cldr-2.4.0 spec/utils/territories_spec.rb
twitter_cldr-2.2.0 spec/utils/territories_spec.rb
twitter_cldr-2.1.1 spec/utils/territories_spec.rb
twitter_cldr-2.1.0 spec/utils/territories_spec.rb