Permalink
Browse files

set the NODE_ENV to development for the development view cache test

  • Loading branch information...
1 parent eeef763 commit 3b6d683b7f2d24d61c910398ad1bbde22c536f98 @lihanli committed Oct 6, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 test/app.js
View
@@ -57,8 +57,10 @@ describe('app.path()', function(){
describe('in development', function(){
it('should disable "view cache"', function(){
+ process.env.NODE_ENV = 'development';
var app = express();
app.enabled('view cache').should.be.false;
+ process.env.NODE_ENV = 'test';
})
})

0 comments on commit 3b6d683

Please sign in to comment.