lib/allure-rspec/builder.rb in allure-rspec-0.3.3 vs lib/allure-rspec/builder.rb in allure-rspec-0.3.4
- old
+ new
@@ -50,10 +50,10 @@
self.suites[suite][:tests][test][:stop] = timestamp(result[:finished_at])
self.suites[suite][:tests][test][:start] = timestamp(result[:started_at])
self.suites[suite][:tests][test][:status] = result[:status]
if (result[:status].to_sym != :passed)
self.suites[suite][:tests][test][:failure] = {
- :stacktrace => escape((result[:caller] || []).map { |s| s.to_s }.join("\r\n")),
+ :stacktrace => escape(((result[:exception] && result[:exception].backtrace) || []).map { |s| s.to_s }.join("\r\n")),
:message => escape(result[:exception].to_s),
}
end
end
\ No newline at end of file