Sha256: 6ec475ff2e0b84d374f83f060d054fe6146f22c85a8d834c0639f3aeb3645abc

Contents?: true

Size: 531 Bytes

Versions: 2

Compression:

Stored size: 531 Bytes

Contents

# frozen_string_literal: true

require "spec_helper"

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

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

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

    it "does blow up when portTypes are imported" do
      get_customer = subject.operations[:get_customer]

      expect(get_customer[:input]).to eq("GetCustomer")
      expect(get_customer[:namespace_identifier]).to be_nil
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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