Skip to content

Instantly share code, notes, and snippets.

@marocchino
Forked from yepp4you/gist:1369990
Created November 16, 2011 15:41
Show Gist options
  • Save marocchino/1370395 to your computer and use it in GitHub Desktop.
Save marocchino/1370395 to your computer and use it in GitHub Desktop.
아아 이 어색함을 어쩔꼬 -_-);
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