Sha256: 923748d30a2c8ad4f40b0393524723678754264d8c43a9570582cc95eabddcb5
Contents?: true
Size: 1.05 KB
Versions: 4
Compression:
Stored size: 1.05 KB
Contents
require "spec_helper" describe Savon::WSDL do before do @wsdl = Savon::WSDL.new Savon::Request.new(EndpointHelper.wsdl_endpoint) end it "is initialized with a Savon::Request object" do Savon::WSDL.new Savon::Request.new(EndpointHelper.wsdl_endpoint) end it "has a getter for the namespace URI" do @wsdl.namespace_uri.should == UserFixture.namespace_uri end it "has a getter for returning an Array of available SOAP actions" do UserFixture.soap_actions.each do |soap_action| @wsdl.soap_actions.should include soap_action end end it "has a getter for returning a Hash of available SOAP operations" do @wsdl.operations.should == UserFixture.operations end it "responds to SOAP actions while still behaving as usual otherwise" do @wsdl.respond_to?(UserFixture.soap_actions.first).should be_true @wsdl.respond_to?(:object_id).should be_true @wsdl.respond_to?(:some_undefined_method).should be_false end it "returns the raw WSDL document for to_s" do @wsdl.to_s.should == UserFixture.user_wsdl end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
savon-0.6.7 | spec/savon/wsdl_spec.rb |
savon-0.6.6 | spec/savon/wsdl_spec.rb |
savon-0.6.5 | spec/savon/wsdl_spec.rb |
savon-0.6.4 | spec/savon/wsdl_spec.rb |