class RSpec::JUnit::FailedExample
Public Instance Methods
backtrace()
click to toggle source
# File lib/rspec/junit/failed_example.rb, line 22 def backtrace RSpec::Core::BacktraceFormatter.new.format_backtrace(exception.backtrace || []) end
details()
click to toggle source
# File lib/rspec/junit/failed_example.rb, line 26 def details [exception_message, backtrace].join "\n" end
error_message()
click to toggle source
# File lib/rspec/junit/failed_example.rb, line 10 def error_message "failed #{name}" end
exception()
click to toggle source
# File lib/rspec/junit/failed_example.rb, line 14 def exception @notification.exception end
exception_message()
click to toggle source
# File lib/rspec/junit/failed_example.rb, line 18 def exception_message exception.message || '' end
failed?()
click to toggle source
# File lib/rspec/junit/failed_example.rb, line 6 def failed? true end