Sha256: f0cfb6831739da5174e9a5b2bdcfc3dc500eb4e36854090c493a7eb104f723c2

Contents?: true

Size: 814 Bytes

Versions: 1

Compression:

Stored size: 814 Bytes

Contents

# frozen_string_literal: true
require "spec_helper"

RSpec.describe Savon::Builder do

  subject(:builder) { Savon::Builder.new(:create_object, wsdl, globals, locals) }

  let(:globals)     { Savon::GlobalOptions.new }
  # let(:locals)      { Savon::LocalOptions.new }
  let(:wsdl)        { Wasabi::Document.new Fixture.wsdl(:brand) }
  let(:no_wsdl)     { Wasabi::Document.new }

  describe "#to_s" do
    it "defaults to include the default envelope namespace of :env" do
      message = {
        :message=>{
          :template_object=>{
            :longName=>"Zertico LLC Reseller"
          }
        }
      }

      locals = Savon::LocalOptions.new(message)
      builder = Savon::Builder.new(:create_object, wsdl, globals, locals)
      expect(builder.to_s).to include('<env:Envelope')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
savon-2.13.0 spec/savon/softlayer_spec.rb