Skip to content

Instantly share code, notes, and snippets.

@Raynos
Created August 20, 2011 20:40
Show Gist options
  • Save Raynos/1159631 to your computer and use it in GitHub Desktop.
Save Raynos/1159631 to your computer and use it in GitHub Desktop.
is.suite("vows-is").batch()
.context("a request to GET /")
.topic().is.a.request("GET /")
.vow("returns 200").it.should.have.status(200)
.vow("returns text/html").it.should.have
.header("content-type", "text/html; charset=utf-8")
.context("contains a body")
.topic().is.property('body')
.vow("that exists").it.should.be.ok
.vow("contains hello world").it.should.include.string("hello world")
.suite().export(module);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment