added a simple test for the host_redirect middleware using mocha and should.js

This commit is contained in:
2012-03-08 01:02:38 +00:00
parent 5f0e243141
commit 4dcb789f17
4 changed files with 89 additions and 4 deletions

View File

@@ -1,9 +1,11 @@
.SILENT:
.PHONY: build watch
.PHONY: build watch docs test
COFFEE_SRC = src
COFFEE_OUT = .
BIN = ./node_modules/.bin
COFFEE_SRC = ./src
COFFEE_OUT = ./
REPORTER = spec
TEST_DIR = ./test
build:
$(BIN)/coffee -c -o $(COFFEE_OUT) $(COFFEE_SRC)
@@ -13,3 +15,6 @@ watch:
docs:
$(BIN)/docco $(shell find $(COFFEE_SRC) -name '*.coffee')
test:
$(BIN)/mocha -R $(REPORTER) $(TEST_DIR)/*.js