Sha256: ecc885dd592bf1e03ce9a12fd103009e54871328f642330f01ab667ad8886712

Contents?: true

Size: 978 Bytes

Versions: 3

Compression:

Stored size: 978 Bytes

Contents

require "spec_helper"

describe Wasabi::Document do
  context "with: multiple_namespaces.xml" do

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

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

    its(:endpoint) { should == URI("http://example.com:1234/soap") }

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

    it { should have(1).operations }

    its(:operations) do
      should == { :save => { :input => "Save", :action => "http://example.com/actions.Save" } }
    end

    its(:type_namespaces) do
      should =~ [
        [["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

    its(:type_definitions) do
      should =~ [ [["Save", "article"], "Article"] ]
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wasabi-2.1.1 spec/wasabi/document/multiple_namespaces_spec.rb
wasabi-2.1.0 spec/wasabi/document/multiple_namespaces_spec.rb
wasabi-2.0.0 spec/wasabi/document/multiple_namespaces_spec.rb