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