Sha256: 483b59bd810e570f4bf70d7172e7f247e6b5d069822200fb8ddb1011543bb542
Contents?: true
Size: 1.64 KB
Versions: 2
Compression:
Stored size: 1.64 KB
Contents
# frozen_string_literal: true require "spec_helper" describe Wasabi::Document do context "with: multiple_namespaces.wsdl" do subject { Wasabi::Document.new fixture(:multiple_namespaces).read } describe '#namespace' do subject { super().namespace } it { is_expected.to eq "http://example.com/actions" } end describe '#endpoint' do subject { super().endpoint } it { is_expected.to eq URI("http://example.com:1234/soap") } end describe '#element_form_default' do subject { super().element_form_default } it { is_expected.to eq :qualified } end it 'has 1 operation' do expect(subject.operations.size).to eq(1) end describe '#operations' do subject { super().operations } it do is_expected.to match({ :save => { :input => "Save", :output=>"SaveResponse", :action => "http://example.com/actions.Save", :namespace_identifier => "actions", :parameters => { :article => { :name => "article", :type => "Article" } } } }) end end describe '#type_namespaces' do subject { super().type_namespaces } it do is_expected.to match([ [["Save"], "http://example.com/actions"], [["Save", "article"], "http://example.com/actions"], [["Article"], "http://example.com/article"], [["Article", "Author"], "http://example.com/article"], [["Article", "Title"], "http://example.com/article"] ]) end end describe '#type_definitions' do subject { super().type_definitions } it do is_expected.to match([ [["Save", "article"], "Article"] ]) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wasabi-3.6.1 | spec/wasabi/document/multiple_namespaces_spec.rb |
wasabi-3.6.0 | spec/wasabi/document/multiple_namespaces_spec.rb |