Sha256: ea2a97acbbacdb2bb204c1260f1a97d9ffd2230dede6700f2cab9e81d9d61f98

Contents?: true

Size: 563 Bytes

Versions: 17

Compression:

Stored size: 563 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)

      expect(result).to include(:foo)
      expect(result).to include("string_key")
      expect(result[:foo]).to eq("bar")
      expect(result["string_key"]).to be_a(Object)
    end
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/twitter_cldr-3.2.1/spec/localized/localized_hash_spec.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/twitter_cldr-3.2.1/spec/localized/localized_hash_spec.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/twitter_cldr-3.1.2/spec/localized/localized_hash_spec.rb
twitter_cldr-3.2.1 spec/localized/localized_hash_spec.rb
twitter_cldr-3.2.0 spec/localized/localized_hash_spec.rb
twitter_cldr-3.1.2 spec/localized/localized_hash_spec.rb
twitter_cldr-3.1.1 spec/localized/localized_hash_spec.rb
twitter_cldr-3.1.0 spec/localized/localized_hash_spec.rb
twitter_cldr-3.0.10 spec/localized/localized_hash_spec.rb
twitter_cldr-3.0.9 spec/localized/localized_hash_spec.rb
twitter_cldr-3.0.8 spec/localized/localized_hash_spec.rb
twitter_cldr-3.0.7 spec/localized/localized_hash_spec.rb
twitter_cldr-3.0.6 spec/localized/localized_hash_spec.rb
twitter_cldr-3.0.5 spec/localized/localized_hash_spec.rb
twitter_cldr-3.0.4 spec/localized/localized_hash_spec.rb
twitter_cldr-3.0.3 spec/localized/localized_hash_spec.rb
twitter_cldr-3.0.2 spec/localized/localized_hash_spec.rb