Use pre element for stack traces

This commit is contained in:
Kevin Sawicki 2014-02-10 17:52:24 -08:00
parent 91bd852812
commit 89b240cd4f

View File

@ -230,7 +230,7 @@ class SpecResultView extends View
stackTrace = formatStackTrace(result.message, result.trace.stack)
@specFailures.append $$ ->
@div result.message, class: 'result-message fail'
@div stackTrace, class: 'stack-trace padded' if stackTrace
@pre stackTrace, class: 'stack-trace padded' if stackTrace
attach: ->
@parentSuiteView().append this