Sha256: c5b4c7c5fc8d29f32f47ea780cf0e9b12054b2af3cbfa78f30dbd9c632d13ef9

Contents?: true

Size: 615 Bytes

Versions: 2

Compression:

Stored size: 615 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
      @reportSpecResults(spec) if spec.type == "hook"
      return
    @reportSpecStarting(spec)
    super


  envInfo: ->
    "mocha 1.9.1"


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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
teabag-0.7.3 app/assets/javascripts/teabag/mocha/reporters/html.coffee
teabag-0.7.2 app/assets/javascripts/teabag/mocha/reporters/html.coffee