Sha256: 1a6b4ba390bd419c66bd1cbee3860537f3feafd0d404110cf143572e63f4161d

Contents?: true

Size: 925 Bytes

Versions: 2

Compression:

Stored size: 925 Bytes

Contents

require "spec_helper"

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

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

    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", :action => "http://api.example.com/api/Client.Delete", :namespace_identifier => "tns" } },
        { :get_clients   => { :input => "User.GetClients", :action => "http://api.example.com/api/User.GetClients", :namespace_identifier => "tns" } },
        { :get_api_key   => { :input => "User.GetApiKey", :action => "http://api.example.com/api/User.GetApiKey", :namespace_identifier => "tns" } }
      )
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wasabi-2.3.0 spec/wasabi/document/namespaced_actions_spec.rb
wasabi-2.2.0 spec/wasabi/document/namespaced_actions_spec.rb