Sha256: 125727047082b64ed8a02cf4890516540ef591489140012899a9ad86313269ab
Contents?: true
Size: 1003 Bytes
Versions: 3
Compression:
Stored size: 1003 Bytes
Contents
require "spec_helper" describe Wasabi::Parser do context "with a WSDL defining xs:schema without targetNamespace" do subject do parser = Wasabi::Parser.new Nokogiri::XML(xml) parser.parse parser end let(:xml) do %Q{ <definitions xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:xs='http://www.w3.org/2001/XMLSchema' targetNamespace='http://def.example.com'> <types> <xs:schema elementFormDefault='qualified'> <xs:element name='Save'> <xs:complexType></xs:complexType> </xs:element> </xs:schema> </types> </definitions> } end # Don't know if real WSDL files omit targetNamespace from xs:schema, # but I suppose we should do something reasonable if they do. it "defaults to the target namespace from xs:definitions" do expect(subject.types["Save"][:namespace]).to eq("http://def.example.com") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wasabi-3.5.0 | spec/wasabi/parser/no_target_namespace_spec.rb |
wasabi-3.4.0 | spec/wasabi/parser/no_target_namespace_spec.rb |
wasabi-3.3.1 | spec/wasabi/parser/no_target_namespace_spec.rb |