Sha256: 15941371b7f7dd55a3064c0b0ae97b2919ec5db21458a2370f2b0b0a14a7c00d

Contents?: true

Size: 354 Bytes

Versions: 6

Compression:

Stored size: 354 Bytes

Contents

extendClass 'specs.<%= class_name %>Spec', (spec)->
  initialize: ->
    @createFakeServer()
    @extend this, new specs.oojspec.AjaxHelpers(@fakeServer)

  runSpecs: ->
    @beforeAll -> @fakeServer.start()
    @afterAll -> @fakeServer.stop()
    @before -> @fakeServer.ignoreAllRequests()

    @it 'passes', ->
      @expect(@fakeServer).toBeDefined()

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
oojs-0.3.0 lib/generators/oojs/spec/templates/spec_main.js.coffee.erb
oojs-0.2.3 lib/generators/oojs/spec/templates/spec_main.js.coffee.erb
oojs-0.2.2 lib/generators/oojs/spec/templates/spec_main.js.coffee.erb
oojs-0.2.1 lib/generators/oojs/spec/templates/spec_main.js.coffee.erb
oojs-0.2.0 lib/generators/oojs/spec/templates/spec_main.js.coffee.erb
oojs-0.1.1 lib/generators/oojs/spec/templates/spec_main.js.coffee.erb