Sha256: 6014323480590083a2e05b6a9cab2f23c10ff5856c589e05d2e31e6531df0db8
Contents?: true
Size: 773 Bytes
Versions: 4
Compression:
Stored size: 773 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 def test_tag_refs_is_deprecated assert_deprecated do Class.new do include ROXML end.tag_refs end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
Empact-roxml-2.4.0 | test/unit/roxml_test.rb |
Empact-roxml-2.4.1 | test/unit/roxml_test.rb |
roxml-2.4.0 | test/unit/roxml_test.rb |
roxml-2.4.1 | test/unit/roxml_test.rb |