Sha256: 92d06caafd4f702d33bc5024d4a3cd85f13f02de2cda4e824a8c44a51e52a044
Contents?: true
Size: 553 Bytes
Versions: 20
Compression:
Stored size: 553 Bytes
Contents
# encoding: UTF-8 # Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 require 'spec_helper' describe TwitterCldr::Localized::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
20 entries across 20 versions & 1 rubygems