lib/generators/oojs/spec/templates/spec.js.coffee.erb in oojs-0.1.0 vs lib/generators/oojs/spec/templates/spec.js.coffee.erb in oojs-0.1.1

- old
+ new

@@ -1,29 +1,4 @@ # =require spec_helper # =require_tree ./<%= file_name %> -$ -> 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() - runs @afterAll - - beforeAll: -> - @fakeServer.start() - - afterAll: => - @fakeServer.stop() - - beforeEach: => - @fakeServer.ignoreAllRequests() - - runSpecs: => - it 'passes', => - expect(@fakeServer).not.toBeUndefined() +oojspec.describe '<%= class_name %>', new specs.<%= class_name %>Spec