Sha256: b86869ad2e94f0705ee99ff4a4624d80ea3f63ead47fae2adef04ac1efa65650

Contents?: true

Size: 695 Bytes

Versions: 4

Compression:

Stored size: 695 Bytes

Contents

#= require teaspoon/runner

class Teaspoon.Jasmine2.Runner extends Teaspoon.Runner

  constructor: ->
    @env = window.jasmine.getEnv()
    super
    @env.execute()


  setup: ->
    # add the responder
    reporter = new (@getReporter())()
    responder = new Teaspoon.Jasmine2.Responder(reporter)
    @env.addReporter(responder)

    # add fixture support
    @addFixtureSupport()


  addFixtureSupport: ->
    return unless jasmine.getFixtures && @fixturePath
    jasmine.getFixtures().containerId = "teaspoon-fixtures"
    jasmine.getFixtures().fixturesPath = @fixturePath
    jasmine.getStyleFixtures().fixturesPath = @fixturePath
    jasmine.getJSONFixtures().fixturesPath = @fixturePath

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
teaspoon-jasmine-2.9.1 lib/teaspoon/jasmine/assets/teaspoon/jasmine2/runner.coffee
teaspoon-jasmine-2.4.1 lib/teaspoon/jasmine/assets/teaspoon/jasmine2/runner.coffee
teaspoon-jasmine-2.3.4 lib/teaspoon/jasmine/assets/teaspoon/jasmine2/runner.coffee
teaspoon-jasmine-2.2.0 lib/teaspoon/jasmine/assets/teaspoon/jasmine2/runner.coffee