Created
August 20, 2011 20:40
-
-
Save Raynos/1159631 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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