Class: Test::Unit::Failure

Inherits:
Object
  • Object
show all
Defined in:
lib/test/unit/failure_xml.rb

Instance Method Summary collapse

Instance Method Details

#xml_elementObject



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.message)
  element.text = self.location.join("\n")
  element
end