1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/xsd/test_xmlschemaparser.rb
nahi a84fc19203 * test/rss/test_*: do $: trick while searching a module in the current
directory.

        * test/xsd/test_xmlschemaparser.rb, test/wsdl/test_emptycomplextype.rb,
          test/soap/helloworld/test_helloworld.rb,
          test/soap/calc/{test_calc.rb,test_calc2.rb}: do File.expand_path
          before using __FILE__.

        * test/yaml/test_yaml.rb: assert_equals -> assert_equal.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-29 02:54:21 +00:00

22 lines
432 B
Ruby

require 'test/unit'
require 'wsdl/xmlSchema/parser'
module XSD
class TestXMLSchemaParser < Test::Unit::TestCase
def setup
@file = File.join(File.dirname(File.expand_path(__FILE__)), 'xmlschema.xml')
end
def test_wsdl
@wsdl = WSDL::XMLSchema::Parser.new.parse(File.open(@file) { |f| f.read })
assert_equal(WSDL::XMLSchema::Schema, @wsdl.class)
assert_equal(1, @wsdl.collect_elements.size)
end
end
end