Sha256: 33e131ad81eacdad2840ab9d3fc4a7cce73d889d302a8b659d14e499cc6579d1

Contents?: true

Size: 586 Bytes

Versions: 3

Compression:

Stored size: 586 Bytes

Contents

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

3 entries across 3 versions & 1 rubygems

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