Sha256: 25098244a80099d181d6ba8aafc683593177ce2325f6510b4b0f2de2d818ea3f

Contents?: true

Size: 949 Bytes

Versions: 2

Compression:

Stored size: 949 Bytes

Contents

require "spec_helper"

describe Savon::WSDL do
  before { @wsdl = Savon::WSDL.new Savon::Request.new SpecHelper.some_endpoint }

  describe "initialize" do
    it "expects a Savon::Request object" do
      Savon::WSDL.new Savon::Request.new SpecHelper.some_endpoint
    end
  end

  describe "namespace_uri" do
    it "returns the namespace URI from the WSDL" do
      @wsdl.namespace_uri.should == UserFixture.namespace_uri
    end
  end

  describe "soap_actions" do
    it "returns an Array containing all available SOAP actions" do
      @wsdl.soap_actions.should == UserFixture.soap_actions.keys
    end
  end

  describe "mapped_soap_actions" do
   it "returns a Hash containing all available SOAP actions and their original names" do
      @wsdl.mapped_soap_actions.should == UserFixture.soap_actions
    end
  end

  describe "to_s" do
    it "returns the WSDL document" do
      @wsdl.to_s.should == UserFixture.user_wsdl
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
savon-0.5.1 spec/savon/wsdl_spec.rb
savon-0.5.0 spec/savon/wsdl_spec.rb