Sha256: 5ff91a0e88a5169e3b320528110bf0a91f3af087bcfc2159ba1780a77c09de49

Contents?: true

Size: 578 Bytes

Versions: 3

Compression:

Stored size: 578 Bytes

Contents

require "spec_helper"

describe Wasabi::Parser do
  context "with: symbolic_endpoint.wsdl" do

    subject do
      parser = Wasabi::Parser.new Nokogiri::XML(xml)
      parser.parse
      parser
    end

    let(:xml) { fixture(:symbolic_endpoint).read }

    it "allows symbolic endpoints" do
      expect(subject.endpoint).to be_nil
    end

    it "should position base class attributes before subclass attributes in :order! array" do
      type = subject.types["ROPtsLiesListe"]
      expect(type[:order!]).to eq(["messages", "returncode", "listenteil"])
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wasabi-3.5.0 spec/wasabi/parser/symbolic_endpoint_spec.rb
wasabi-3.4.0 spec/wasabi/parser/symbolic_endpoint_spec.rb
wasabi-3.3.1 spec/wasabi/parser/symbolic_endpoint_spec.rb