pulsar/spec/spec-bootstrap.coffee

25 lines
557 B
CoffeeScript
Raw Normal View History

{$$} = require 'space-pen'
nakedLoad 'jasmine'
nakedLoad 'jasmine-html'
nakedLoad 'jasmine-focused'
$ = require 'jquery'
$('head').append $$ ->
2012-02-06 23:11:45 +04:00
@link rel: "stylesheet", type: "text/css", href: "static/jasmine.css"
$('body').append $$ ->
2012-02-06 23:11:45 +04:00
@div id: 'jasmine_runner'
@div id: 'jasmine-content'
jasmineEnv = jasmine.getEnv()
trivialReporter = new jasmine.TrivialReporter(document, 'jasmine_runner')
jasmineEnv.addReporter(trivialReporter)
jasmineEnv.specFilter = (spec) -> trivialReporter.specFilter(spec)
require 'spec-suite'
jasmineEnv.execute()