Sha256: 73f730be8eebfa1b512e375bc0ebd4c3a43d1fdbc04170592f66694b63c6f0f1

Contents?: true

Size: 593 Bytes

Versions: 5

Compression:

Stored size: 593 Bytes

Contents

module "QUnit Teabag.Runner",
  setup: ->
    QUnit.start = sinon.spy()
    Teabag.Runner.prototype.reportRunnerStarting = sinon.spy()

test "constructor", 1, ->
  new Teabag.Runner()
  ok(QUnit.start.called, "QUnit.start was called")

test "#setup", ->
  runner = new Teabag.Runner()
  runner.params = {grep: "foo"}
  reporter = ->
  reporter.prototype.setFilter = sinon.spy()
  runner.getReporter = sinon.spy(-> reporter)

  runner.setup()

  ok(runner.getReporter.called, "#getReporter was called")
  ok(reporter.prototype.setFilter.args[0][0] == "foo", "#setFilter was called with 'foo'")

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
teabag-0.5.1 test/javascripts/teabag/qunit/runner_test.coffee
teabag-0.5.0 test/javascripts/teabag/qunit/runner_test.coffee
teabag-0.4.6 test/javascripts/teabag/qunit/runner_test.coffee
teabag-0.4.5 test/javascripts/teabag/qunit/runner_test.coffee
teabag-0.4.4 test/javascripts/teabag/qunit/runner_test.coffee