Sha256: 172b4c84abfcdc1c83c8fe12cce8fccafc4caf424caa03054e19677f31337e0f
Contents?: true
Size: 1.32 KB
Versions: 3
Compression:
Stored size: 1.32 KB
Contents
require "spec_helper" describe Wasabi::Document do context "with: namespaced_actions.wsdl" do subject { Wasabi::Document.new fixture(:namespaced_actions).read } describe '#namespace' do subject { super().namespace } it { should == "http://api.example.com/api/" } end describe '#endpoint' do subject { super().endpoint } it { should == URI("https://api.example.com/api/api.asmx") } end describe '#element_form_default' do subject { super().element_form_default } it { should == :qualified } end it 'has 3 operations' do expect(subject.operations.size).to eq(3) end describe '#operations' do subject { super().operations } it 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 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wasabi-3.5.0 | spec/wasabi/document/namespaced_actions_spec.rb |
wasabi-3.4.0 | spec/wasabi/document/namespaced_actions_spec.rb |
wasabi-3.3.1 | spec/wasabi/document/namespaced_actions_spec.rb |