app/assets/javascripts/teabag/mocha/reporters/console.coffee in teabag-0.3.5 vs app/assets/javascripts/teabag/mocha/reporters/console.coffee in teabag-0.3.6
- old
+ new
@@ -1,14 +1,15 @@
class Teabag.Reporters.Console extends Teabag.Reporters.Console
constructor: (runner) ->
super
+ @reportRunnerStarting(runner)
runner.on("fail", @reportSpecResults)
runner.on("test end", @reportSpecResults)
runner.on("end", @reportRunnerResults)
- reportSpecResults: (@spec, err) =>
+ reportSpecResults: (spec, err) =>
if err
- @spec.err = err
+ spec.err = err
return
super