Sha256: 3efa0fce3576d904eb926a38f37a2ffed0ae4792abe4c3a3d90dffdb0210b487

Contents?: true

Size: 617 Bytes

Versions: 2

Compression:

Stored size: 617 Bytes

Contents

# frozen_string_literal: true

require "spec_helper"

describe Wasabi::Parser do
  context 'with: juniper.wsdl' do

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

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

    it 'does not blow up when an extension base element is defined in an import' do
      request = subject.operations[:get_system_info_request]

      expect(request[:input]).to eq('GetSystemInfoRequest')
      expect(request[:action]).to eq('urn:#GetSystemInfoRequest')
      expect(request[:namespace_identifier]).to eq('impl')
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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