mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
22 lines
423 B
Ruby
22 lines
423 B
Ruby
|
require 'test/unit'
|
||
|
require 'wsdl/xmlSchema/parser'
|
||
|
|
||
|
|
||
|
module XSD
|
||
|
|
||
|
|
||
|
class TestEmptyCharset < Test::Unit::TestCase
|
||
|
def setup
|
||
|
@file = File.join(File.dirname(File.expand_path(__FILE__)), 'noencoding.xml')
|
||
|
end
|
||
|
|
||
|
def test_wsdl
|
||
|
xml = WSDL::XMLSchema::Parser.new.parse(File.open(@file) { |f| f.read })
|
||
|
assert_equal(WSDL::XMLSchema::Schema, xml.class)
|
||
|
assert_equal(0, xml.collect_elements.size)
|
||
|
end
|
||
|
end
|
||
|
|
||
|
|
||
|
end
|