From c882d73527d4717ca55074e07cb0edef6034b222 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 10 Feb 2014 18:53:06 -0800 Subject: [PATCH] Add it prefix to failure descriptions --- spec/atom-reporter.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/atom-reporter.coffee b/spec/atom-reporter.coffee index 49a614271..55e8a7de3 100644 --- a/spec/atom-reporter.coffee +++ b/spec/atom-reporter.coffee @@ -231,7 +231,10 @@ class SpecResultView extends View initialize: (@spec) -> @addClass("spec-view-#{@spec.id}") - @description.text @spec.description + + description = @spec.description + description = "it #{description}" if description.indexOf('it ') isnt 0 + @description.text(description) for result in @spec.results().getItems() when not result.passed() stackTrace = formatStackTrace(result.message, result.trace.stack)