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{ } 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 subject.types["Save"][:namespace].should == "http://def.example.com" end end end