Sha256: 15672100eb7bae1cea62d477ce13d0b32881d53edf70837567f395459ef2f87d

Contents?: true

Size: 641 Bytes

Versions: 9

Compression:

Stored size: 641 Bytes

Contents

describe "Mocha Teaspoon.Runner", ->

  beforeEach ->
    @runSpy = mocha.run = sinon.spy()
    @runner = new Teaspoon.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: Teaspoon.Reporters.Console)
#      else
#        assert.calledOnce(spy, reporter: Teaspoon.Reporters.HTML)

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
teaspoon-0.9.1 spec/javascripts/teaspoon/mocha/runner_mspec.coffee
teaspoon-0.9.0 spec/javascripts/teaspoon/mocha/runner_mspec.coffee
teaspoon-0.8.0 spec/javascripts/teaspoon/mocha/runner_mspec.coffee
teaspoon-0.7.9 spec/javascripts/teaspoon/mocha/runner_mspec.coffee
teaspoon-0.7.8 spec/javascripts/teaspoon/mocha/runner_mspec.coffee
teaspoon-0.7.7 spec/javascripts/teaspoon/mocha/runner_mspec.coffee
teaspoon-0.7.6 spec/javascripts/teaspoon/mocha/runner_mspec.coffee
teaspoon-0.7.5 spec/javascripts/teaspoon/mocha/runner_mspec.coffee
teaspoon-0.7.4 spec/javascripts/teaspoon/mocha/runner_mspec.coffee