Sha256: 7d947f2a279758b84eb9d241df333d6fd1365bbaae49be820f3e2570dda5c95c

Contents?: true

Size: 606 Bytes

Versions: 7

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.3"


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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
teabag-0.3.6 app/assets/javascripts/teabag/mocha/reporters/html.coffee
teabag-0.3.5 app/assets/javascripts/teabag/mocha/reporters/html.coffee
teabag-0.3.4 app/assets/javascripts/teabag/mocha/reporters/html.coffee
teabag-0.3.3 app/assets/javascripts/teabag/mocha/reporters/html.coffee
teabag-0.3.2 app/assets/javascripts/teabag/mocha/reporters/html.coffee
teabag-0.3.1 app/assets/javascripts/teabag/mocha/reporters/html.coffee
teabag-0.3.0 app/assets/javascripts/teabag/mocha/reporters/html.coffee