Show 0 failures when all pass

This commit is contained in:
Kevin Sawicki 2014-02-11 09:23:12 -08:00
parent 069ead6b1c
commit 848d77d3eb

View File

@ -68,13 +68,10 @@ class AtomReporter extends View
reportRunnerResults: (runner) ->
@updateSpecCounts()
if @failedCount == 0
@message.text "Specs Passed"
if @failedCount is 1
@message.text "#{@failedCount} failure"
else
if @failedCount is 1
@message.text "#{@failedCount} Failure"
else
@message.text "#{@failedCount} Failures"
@message.text "#{@failedCount} failures"
reportSuiteResults: (suite) ->