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

Version Path
savon-SU-2.11.1b spec/savon/qualified_message_spec.rb
savon-SU-2.11.1 spec/savon/qualified_message_spec.rb
savon-2.11.1 spec/savon/qualified_message_spec.rb
savon-2.11.0 spec/savon/qualified_message_spec.rb
savon-2.10.1 spec/savon/qualified_message_spec.rb
savon-2.10.0 spec/savon/qualified_message_spec.rb
savon-2.9.0 spec/savon/qualified_message_spec.rb
savon-2.8.1 spec/savon/qualified_message_spec.rb
savon-2.8.0 spec/savon/qualified_message_spec.rb
savon-2.7.2 spec/savon/qualified_message_spec.rb
savon-2.7.1 spec/savon/qualified_message_spec.rb
savon-2.7.0 spec/savon/qualified_message_spec.rb