Class: Test::Unit::Failure
- Inherits:
-
Object
- Object
- Test::Unit::Failure
- Defined in:
- lib/test/unit/failure_xml.rb
Instance Method Summary collapse
Instance Method Details
#xml_element ⇒ Object
7 8 9 10 11 12 |
# File 'lib/test/unit/failure_xml.rb', line 7 def xml_element element = REXML::Element.new('failure') element.add_attributes('type' => 'Test::Unit::AssertionFailedError', 'message' => self.) element.text = self.location.join("\n") element end |