Permalink
Browse files

cakes/express_engine fixed

  • Loading branch information...
1 parent f95211d commit 211ea4e11bbcde51d8fecaec272d4d769ae38c00 @quangv committed Feb 7, 2012
Showing with 3 additions and 4 deletions.
  1. +2 −3 cakes/express_engine.coffee
  2. +1 −1 cut
@@ -11,17 +11,16 @@ Feature 'Express Engine',
Given 'an Express server', ->
express = require 'express'
app = express.createServer()
- app.set 'views', process.cwd()
+ app.set 'views', process.cwd()+'/views'
app.listen 3000
And "it's registered to use Hulk-Hogan", ->
app.set 'view options', layout:false
app.register '.hulk', require '../'
- file = null
fs = require 'fs'
And 'I have a template file', ->
- file = 'express_engine.hulk'
+ file = 'views/express_engine.hulk'
template = fs.readFileSync file
template.toString().should.eql 'Hello {{what}}!'
View
2 cut
@@ -1,3 +1,3 @@
#!/bin/bash
-mocha -R spec -r should -r mocha-cakes -t 15000 $@
+mocha -R spec -r should -r mocha-cakes -t 15000 --globals log $@

0 comments on commit 211ea4e

Please sign in to comment.