Sha256: 82fc778c5aad308dcf29e436e12fdcba3018849697d008a0311d52bdcbe53cf1

Contents?: true

Size: 479 Bytes

Versions: 3

Compression:

Stored size: 479 Bytes

Contents

require "spec_helper"

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

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

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

    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

3 entries across 3 versions & 1 rubygems

Version Path
wasabi-2.1.1 spec/wasabi/parser/no_namespace_spec.rb
wasabi-2.1.0 spec/wasabi/parser/no_namespace_spec.rb
wasabi-2.0.0 spec/wasabi/parser/no_namespace_spec.rb