diff options
Diffstat (limited to 'test/xsd/test_noencoding.rb')
-rw-r--r-- | test/xsd/test_noencoding.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/xsd/test_noencoding.rb b/test/xsd/test_noencoding.rb new file mode 100644 index 0000000000..0f2daae05f --- /dev/null +++ b/test/xsd/test_noencoding.rb @@ -0,0 +1,21 @@ +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 |