Sha256: 4d09e49cddcd26c0da176db6ef72898615672ebd8a7c986a76d5214b2e9d30c1

Contents?: true

Size: 546 Bytes

Versions: 15

Compression:

Stored size: 546 Bytes

Contents

# encoding: UTF-8

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

require 'spec_helper'

include TwitterCldr::Localized

describe LocalizedHash do
  describe "#to_yaml" do
    it "should be able to successfully roundtrip the hash" do
      hash = { :foo => "bar", "string_key" => Object.new }
      result = YAML.load(hash.localize.to_yaml)

      result.should include(:foo)
      result.should include("string_key")
      result[:foo].should == "bar"
      result["string_key"].should be_a(Object)
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
twitter_cldr-3.0.1 spec/localized/localized_hash_spec.rb
twitter_cldr-2.4.3 spec/localized/localized_hash_spec.rb
twitter_cldr-3.0.0 spec/localized/localized_hash_spec.rb
twitter_cldr-3.0.0.beta1 spec/localized/localized_hash_spec.rb
twitter_cldr-2.4.2 spec/localized/localized_hash_spec.rb
twitter_cldr-2.4.1 spec/localized/localized_hash_spec.rb
twitter_cldr-2.4.0 spec/localized/localized_hash_spec.rb
twitter_cldr-2.2.0 spec/localized/localized_hash_spec.rb
twitter_cldr-2.1.1 spec/localized/localized_hash_spec.rb
twitter_cldr-2.1.0 spec/localized/localized_hash_spec.rb
twitter_cldr-2.0.2 spec/localized/localized_hash_spec.rb
twitter_cldr-2.0.1 spec/localized/localized_hash_spec.rb
twitter_cldr-2.0.0 spec/localized/localized_hash_spec.rb
twitter_cldr-1.9.1 spec/localized/localized_hash_spec.rb
twitter_cldr-1.9.0 spec/localized/localized_hash_spec.rb