Sha256: 912448a1fc13f519bad09d8107ba55eee7fb4c597236ef33705fc595f0acf29a

Contents?: true

Size: 606 Bytes

Versions: 9

Compression:

Stored size: 606 Bytes

Contents

class Teabag.Reporters.HTML extends Teabag.Reporters.HTML

  constructor: (runner) ->
    super
    @setFilter(Teabag.Reporters.HTML.filter)
    @reportRunnerStarting(runner)
    runner.on("fail", @reportSpecResults)
    runner.on("test end", @reportSpecResults)
    runner.on("end", @reportRunnerResults)


  reportSpecResults: (spec, err) =>
    if err
      spec.err = err
      return
    @reportSpecStarting(spec)
    super


  envInfo: ->
    "mocha 1.7.4"


class Teabag.Reporters.HTML.SpecView extends Teabag.Reporters.HTML.SpecView

  updateState: (state) ->
    super(state, @spec.spec.duration)

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
teabag-0.5.1 app/assets/javascripts/teabag/mocha/reporters/html.coffee
teabag-0.5.0 app/assets/javascripts/teabag/mocha/reporters/html.coffee
teabag-0.4.6 app/assets/javascripts/teabag/mocha/reporters/html.coffee
teabag-0.4.5 app/assets/javascripts/teabag/mocha/reporters/html.coffee
teabag-0.4.4 app/assets/javascripts/teabag/mocha/reporters/html.coffee
teabag-0.4.3 app/assets/javascripts/teabag/mocha/reporters/html.coffee
teabag-0.4.2 app/assets/javascripts/teabag/mocha/reporters/html.coffee
teabag-0.4.1 app/assets/javascripts/teabag/mocha/reporters/html.coffee
teabag-0.4.0 app/assets/javascripts/teabag/mocha/reporters/html.coffee