Sha256: 9e9745f669310792fd3edf4618604e4d630cd65638e0bbabd62f4466e0d92723

Contents?: true

Size: 591 Bytes

Versions: 2

Compression:

Stored size: 591 Bytes

Contents

# frozen_string_literal: true

require "spec_helper"

describe Wasabi::Parser do
  context "with: symbolic_endpoint.wsdl" do
    subject(:parser) { described_class.new Nokogiri::XML(xml) }

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

    before { parser.parse }

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

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

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wasabi-3.6.1 spec/wasabi/parser/symbolic_endpoint_spec.rb
wasabi-3.6.0 spec/wasabi/parser/symbolic_endpoint_spec.rb