Sha256: 4d026840bd470b42c8bbbd5512b272975037d1ce836a1c8efbe81d3c72603ce9
Contents?: true
Size: 1.61 KB
Versions: 2
Compression:
Stored size: 1.61 KB
Contents
# frozen_string_literal: true require "spec_helper" describe Wasabi::Document do context "with: no_namespace.wsdl" do subject { Wasabi::Document.new fixture(:no_namespace).read } describe '#namespace' do subject { super().namespace } it { should == "urn:ActionWebService" } end describe '#endpoint' do subject { super().endpoint } it { should == URI("http://example.com/api/api") } end describe '#element_form_default' do subject { super().element_form_default } it { should == :unqualified } end it 'has 3 operations' do expect(subject.operations.size).to eq(3) end describe '#operations' do subject { super().operations } it do should include( { :get_user_login_by_id => { :input => { "GetUserLoginById" => { "api_key" => ["xsd", "string"], "id" => ["xsd", "int"] }}, :output=>{"GetUserLoginById"=>{"return"=>["xsd", "string"]}}, :action => "/api/api/GetUserLoginById", :namespace_identifier => "typens" } }, { :get_all_contacts => { :input => {"GetAllContacts" => { "api_key" => ["xsd", "string"], "login"=>["xsd", "string"] }}, :output=>{"GetAllContacts"=>{"return"=>["typens", "McContactArray"]}}, :action => "/api/api/GetAllContacts", :namespace_identifier => "typens" } }, { :search_user => { :input => { "SearchUser" => { "api_key" => ["xsd", "string"], "phrase"=>["xsd", "string"], "page"=>["xsd", "string"], "per_page"=>["xsd", "string"] }}, :output=>{"SearchUser"=>{"return"=>["typens", "MpUserArray"]}}, :action => "/api/api/SearchUser", :namespace_identifier => nil } } ) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wasabi-3.6.1 | spec/wasabi/document/no_namespace_spec.rb |
wasabi-3.6.0 | spec/wasabi/document/no_namespace_spec.rb |