Sha256: 1ec292a86d60dabf529ebfbc93237ccb56090d4a3649b4465ac5a18d60950d3b

Contents?: true

Size: 465 Bytes

Versions: 9

Compression:

Stored size: 465 Bytes

Contents

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

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

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

  runner.setup()

  ok(runner.getReporter.called, "#getReporter was called")

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
teaspoon-0.9.1 test/javascripts/teaspoon/qunit/runner_test.coffee
teaspoon-0.9.0 test/javascripts/teaspoon/qunit/runner_test.coffee
teaspoon-0.8.0 test/javascripts/teaspoon/qunit/runner_test.coffee
teaspoon-0.7.9 test/javascripts/teaspoon/qunit/runner_test.coffee
teaspoon-0.7.8 test/javascripts/teaspoon/qunit/runner_test.coffee
teaspoon-0.7.7 test/javascripts/teaspoon/qunit/runner_test.coffee
teaspoon-0.7.6 test/javascripts/teaspoon/qunit/runner_test.coffee
teaspoon-0.7.5 test/javascripts/teaspoon/qunit/runner_test.coffee
teaspoon-0.7.4 test/javascripts/teaspoon/qunit/runner_test.coffee