Sha256: eabd9bba1dc9f6cec4009a27f7049b3e7756a591343397aab74ae3c24d31d9ca

Contents?: true

Size: 682 Bytes

Versions: 33

Compression:

Stored size: 682 Bytes

Contents

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
    begin
      xml = WSDL::XMLSchema::Parser.new.parse(File.open(@file) { |f| f.read })
    rescue RuntimeError
      if XSD::XMLParser.const_defined?("REXMLParser")
	STDERR.puts("rexml cannot handle euc-jp without iconv/uconv.")
	return
      end
      raise
    rescue Errno::EINVAL
      # unsupported encoding
      return
    end
    assert_equal(WSDL::XMLSchema::Schema, xml.class)
    assert_equal(0, xml.collect_elements.size)
  end
end


end

Version data entries

33 entries across 33 versions & 13 rubygems

Version Path
rubyjedi-soap4r-1.5.8.01 test/xsd/test_noencoding.rb
etapper-0.0.5 vendor/gems/soap4r-1.5.8.2/test/xsd/test_noencoding.rb
etapper-0.0.4 vendor/gems/soap4r-1.5.8.2/test/xsd/test_noencoding.rb
etapper-0.0.3 vendor/gems/soap4r-1.5.8.2/test/xsd/test_noencoding.rb
etapper-0.0.2 vendor/gems/soap4r-1.5.8.2/test/xsd/test_noencoding.rb
mumboe-soap4r-1.5.8.3 test/xsd/test_noencoding.rb
mumboe-soap4r-1.5.8.2 test/xsd/test_noencoding.rb
etapper-0.0.1 vendor/gems/soap4r-1.5.8.2/test/xsd/test_noencoding.rb
etapper-0.0.0 vendor/gems/soap4r-1.5.8.2/test/xsd/test_noencoding.rb
soap4r-1.5.6 test/xsd/test_noencoding.rb
soap4r-1.5.5.20061022 test/xsd/test_noencoding.rb
soap4r-1.5.7 test/xsd/test_noencoding.rb
soap4r-1.5.8 test/xsd/test_noencoding.rb