# File test/core_test.rb, line 590 def test_line doc = Document.new File.new( "test/bad.xml" ) assert_fail "There should have been an error" rescue Exception # We should get here er = $! assert_equal 4, $!.line end