Sha256: 773aa19cec7aa8e068fee37d89e8e6edb0e2b671557ebdeeb6dda2d325b7804a
Contents?: true
Size: 639 Bytes
Versions: 4
Compression:
Stored size: 639 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', 'test_helper') class TestROXML < Test::Unit::TestCase # Malformed XML parsing should throw REXML::ParseException def test_malformed ROXML::XML::Parser.register_error_handler {|err| } assert_raise ROXML::XML::Parser::ParseError do book = Book.from_xml(fixture(:book_malformed)) end end # Verify that an exception is thrown when two accessors have the same # name in a ROXML class. def test_duplicate_accessor assert_raise RuntimeError do Class.new do include ROXML xml_reader :id xml_accessor :id end end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
Empact-roxml-2.2 | test/unit/roxml_test.rb |
Empact-roxml-2.3.0 | test/unit/roxml_test.rb |
Empact-roxml-2.3.1 | test/unit/roxml_test.rb |
roxml-2.3.2 | test/unit/roxml_test.rb |