Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
require 'express'
class Server
constructor: ->
@app = express()
@server = http.createServer(@app)
@io = SocketIO.listen @server, logger: @logger
start: (done) =>
@server.listen 3000
stop: (done) =>
@server.stop done
configure_app: =>
# spec/requests/
Server = require '../../app'
describe 'Login Page', ->
beforeAll (done) ->
@server = new Server
@server.start done
afterAll (done) ->
@server.stop done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment