Sha256: 93b05e295b017e74306c43b48499df64f2d22fe48346ce3889f1306f0f83ee84

Contents?: true

Size: 485 Bytes

Versions: 6

Compression:

Stored size: 485 Bytes

Contents

require "spec_helper"

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

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

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

    it "lists the types" do
      subject.types.keys.sort.should == ["McContact", "McContactArray", "MpUser", "MpUserArray"]
    end

    it "ignores xsd:all" do
      subject.types["MpUser"].keys.should == [:namespace]
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wasabi-3.1.0 spec/wasabi/parser/no_namespace_spec.rb
wasabi-3.0.0 spec/wasabi/parser/no_namespace_spec.rb
wasabi-2.5.1 spec/wasabi/parser/no_namespace_spec.rb
wasabi-2.5.0 spec/wasabi/parser/no_namespace_spec.rb
wasabi-2.4.1 spec/wasabi/parser/no_namespace_spec.rb
wasabi-2.4.0 spec/wasabi/parser/no_namespace_spec.rb