Sha256: 901131e05057ebeffa6142f0b03ebfaedb799ec202f4299bbd4c0a750a10cd9a

Contents?: true

Size: 561 Bytes

Versions: 4

Compression:

Stored size: 561 Bytes

Contents

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

  constructor: (runner) ->
    super
    @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

4 entries across 4 versions & 1 rubygems

Version Path
teabag-0.5.5 app/assets/javascripts/teabag/mocha/reporters/html.coffee
teabag-0.5.4 app/assets/javascripts/teabag/mocha/reporters/html.coffee
teabag-0.5.3 app/assets/javascripts/teabag/mocha/reporters/html.coffee
teabag-0.5.2 app/assets/javascripts/teabag/mocha/reporters/html.coffee