Sha256: b358cce61ea17b91de706e697614a615eb93736a32cfb5b67ddb1b910b070b0b

Contents?: true

Size: 633 Bytes

Versions: 19

Compression:

Stored size: 633 Bytes

Contents

describe "Mocha Teabag.Runner", ->

  beforeEach ->
    @runSpy = mocha.run = sinon.spy()
    @runner = new Teabag.Runner()

  describe "constructor", ->

    it "calls run on the mocha env", ->
      @runner.setup = sinon.stub()
      assert.calledOnce(@runSpy)


  describe "#setup", ->

    it "adds the reporter to the env", ->
#      spy = mocha.setup = sinon.spy()
#      @runner.params = {grep: "foo"}
#      @runner.setup()
#      if window.navigator.userAgent.match(/PhantomJS/)
#        assert.calledOnce(spy, reporter: Teabag.Reporters.Console)
#      else
#        assert.calledOnce(spy, reporter: Teabag.Reporters.HTML)

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
teabag-0.7.3 spec/javascripts/teabag/mocha/runner_mspec.coffee
teabag-0.7.2 spec/javascripts/teabag/mocha/runner_mspec.coffee
teabag-0.7.1 spec/javascripts/teabag/mocha/runner_mspec.coffee
teabag-0.7.0 spec/javascripts/teabag/mocha/runner_mspec.coffee
teabag-0.6.0 spec/javascripts/teabag/mocha/runner_mspec.coffee
teabag-0.5.5 spec/javascripts/teabag/mocha/runner_mspec.coffee
teabag-0.5.4 spec/javascripts/teabag/mocha/runner_mspec.coffee
teabag-0.5.3 spec/javascripts/teabag/mocha/runner_mspec.coffee
teabag-0.5.2 spec/javascripts/teabag/mocha/runner_mspec.coffee
teabag-0.5.1 spec/javascripts/teabag/mocha/runner_mspec.coffee
teabag-0.5.0 spec/javascripts/teabag/mocha/runner_mspec.coffee
teabag-0.4.6 spec/javascripts/teabag/mocha/runner_mspec.coffee
teabag-0.4.5 spec/javascripts/teabag/mocha/runner_mspec.coffee
teabag-0.4.4 spec/javascripts/teabag/mocha/runner_mspec.coffee
teabag-0.4.3 spec/javascripts/teabag/mocha/runner_mspec.coffee
teabag-0.4.2 spec/javascripts/teabag/mocha/runner_mspec.coffee
teabag-0.4.1 spec/javascripts/teabag/mocha/runner_mspec.coffee
teabag-0.4.0 spec/javascripts/teabag/mocha/runner_mspec.coffee
teabag-0.3.6 spec/javascripts/teabag/mocha/runner_mspec.coffee