Sha256: 31f56c199c20ab9216910883b0cc7c83877134a77a2af0eb934eea621a98240e

Contents?: true

Size: 1.02 KB

Versions: 6

Compression:

Stored size: 1.02 KB

Contents

require "spec_helper"

describe Wasabi::Document do
  context "with: namespaced_actions.wsdl" do

    subject { Wasabi::Document.new fixture(:namespaced_actions).read }

    its(:namespace) { should == "http://api.example.com/api/" }

    its(:endpoint) { should == URI("https://api.example.com/api/api.asmx") }

    its(:element_form_default) { should == :qualified }

    it { should have(3).operations }

    its(:operations) do
      should include(
        { :delete_client => { :input => "Client.Delete", :output => "Client.DeleteResponse", :action => "http://api.example.com/api/Client.Delete", :namespace_identifier => "tns" } },
        { :get_clients   => { :input => "User.GetClients", :output => "User.GetClientsResponse", :action => "http://api.example.com/api/User.GetClients", :namespace_identifier => "tns" } },
        { :get_api_key   => { :input => "User.GetApiKey", :output => "User.GetApiKeyResponse", :action => "http://api.example.com/api/User.GetApiKey", :namespace_identifier => "tns" } }
      )
    end

  end
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
wasabi-3.3.0 spec/wasabi/document/namespaced_actions_spec.rb
wasabi_with_adapter-3.2.4 spec/wasabi/document/namespaced_actions_spec.rb
wasabi-3.2.3 spec/wasabi/document/namespaced_actions_spec.rb
wasabi-3.2.1 spec/wasabi/document/namespaced_actions_spec.rb
wasabi-ng-1.6-3.3.0 spec/wasabi/document/namespaced_actions_spec.rb
wasabi-3.2.0 spec/wasabi/document/namespaced_actions_spec.rb