Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 52551be98e
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (24 sloc) 0.722 kb
require 'tower'
global.chai = require 'chai'
global.assert = chai.assert
global.expect = chai.expect
global.sinon = require 'sinon'
global.async = require 'async'
global.test = it
global.cb = true # some library has a global leak...
global.factory = -> Tower.Factory.create(arguments...)
global.urlFor = Tower.urlFor
global.get = _.get
global.post = _.post
global.put = _.put
global.destroy = _.destroy
global.app = Tower.Application.instance()
# Initialize the app before everything.
before (done) ->
app.initialize done
# Run this before each action
beforeEach (done) ->
if Tower.isClient
Tower.StoreMemory.clean(done)
else
Tower.StoreMongodb.clean(done)
Jump to Line
Something went wrong with that request. Please try again.