Sha256: 4b7ce5a79daca0115daa9879d5e3f4138ecb3eac4667bcb97b191ffc95ccb649
Contents?: true
Size: 484 Bytes
Versions: 12
Compression:
Stored size: 484 Bytes
Contents
require "spec_helper" module Savon describe QualifiedMessage, "#to_hash" do context "if a key ends with !" do it "restores the ! in a key" do used_namespaces = {} key_converter = :camelcase types = {} message = described_class.new(types, used_namespaces, key_converter) resulting_hash = message.to_hash({:Metal! => "<Nice/>"}, ["Rock"]) expect(resulting_hash).to eq({"Metal!" => "<Nice/>"}) end end end end
Version data entries
12 entries across 12 versions & 2 rubygems