Skip to content

Instantly share code, notes, and snippets.

@cmeiklejohn
Created September 10, 2011 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmeiklejohn/1208847 to your computer and use it in GitHub Desktop.
Save cmeiklejohn/1208847 to your computer and use it in GitHub Desktop.
vows = require('vows')
tobi = require('tobi')
should = require('should')
vows
.describe('Test')
.addBatch
'A hit':
topic: () ->
browser = tobi.createBrowser(80, 'www.yahoo.com')
browser.get '/', (res, $) ->
console.log "response: " + res
this.callback(null, res, $)
'should return 200': (err, response, $) ->
response.should.have.status(200)
.export(module)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment