Sha256: e034b90b5ba091ce5b06a73c116ca9991383b82af63aa978e6f981295af38ca3

Contents?: true

Size: 465 Bytes

Versions: 6

Compression:

Stored size: 465 Bytes

Contents

#= require mocha-1.7.3
#= require teabag/base/teabag
#= require_tree ./mocha/reporters

class Teabag.Runner extends Teabag.Runner

  env = mocha.setup("bdd")

  constructor: ->
    super
    env.run()


  setup: ->
    # add the reporter and set the filter
    if navigator.userAgent.match(/PhantomJS/)
      reporter = Teabag.Reporters.Console
    else
      reporter = Teabag.Reporters.HTML
    reporter.filter = @params["grep"]
    env.setup(reporter: reporter)

Version data entries

6 entries across 6 versions & 1 rubygems

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