lib/generators/oojs/spec/templates/spec.js.coffee.erb in oojs-0.0.1 vs lib/generators/oojs/spec/templates/spec.js.coffee.erb in oojs-0.0.2
- old
+ new
@@ -3,22 +3,23 @@
$ -> new specs.<%= class_name %>Spec
extendClass 'specs.<%= class_name %>Spec', (spec)->
initialize: ->
@createFakeServer()
+ @extend this, new specs.jasmine.AjaxHelpers(@fakeServer)
@describe()
describe: ->
describe '<%= class_name %>', =>
@beforeAll()
beforeEach @beforeEach
@runSpecs()
- @afterAll()
+ runs @afterAll
beforeAll: ->
@fakeServer.start()
- afterAll: ->
+ afterAll: =>
@fakeServer.stop()
beforeEach: =>
@fakeServer.ignoreAllRequests()