Created
November 16, 2011 12:44
-
-
Save yepp4you/1369990 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
vows = require 'vows' | |
assert = require 'assert' | |
tobi = require 'tobi' | |
vows.describe('Root').addBatch | |
'브라우저에서': | |
topic: -> tobi.createBrowser 3000, 'localhost' | |
'GET /의': | |
topic: (topic) -> | |
topic.get "/", @callback.bind(@, null) | |
return | |
"상태 코드는 200이 나와야 합니다": (_, res, $) -> | |
res.should.have.status 200 | |
"제목은 Express라는 글을 포함해야 합니다": (_, res, $) -> | |
$('h1').should.include.text 'Express' | |
.export module | |
# 결과 ##################################### | |
#♢ Root | |
# | |
# 브라우저에서 GET /의 | |
# ✓ 상태 코드는 200이 나와야 합니다 | |
# ✓ 제목은 Express라는 글을 포함해야 합니다 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment