Updated MSpec source to 1c3ee1c8.
[rbx.git] / test / mri / xsd / test_xmlschemaparser.rb
blob10dff43e614f44029507cac31b07c9969e0659ff
1 require 'test/unit'
2 require 'wsdl/xmlSchema/parser'
5 module XSD
8 class TestXMLSchemaParser < Test::Unit::TestCase
9   def setup
10     @file = File.join(File.dirname(File.expand_path(__FILE__)), 'xmlschema.xml')
11   end
13   def test_wsdl
14     @wsdl = WSDL::XMLSchema::Parser.new.parse(File.open(@file) { |f| f.read })
15     assert_equal(WSDL::XMLSchema::Schema, @wsdl.class)
16     assert_equal(1, @wsdl.collect_elements.size)
17   end
18 end
22 end