Permalink
Browse files

Merge pull request #1355 from lihanli/view-cache-test

set the NODE_ENV to development for the development view cache test
  • Loading branch information...
2 parents eeef763 + 3b6d683 commit 3cd01598a5f940310453bcf825f07380243c5f06 @tj tj 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 3cd0159

Please sign in to comment.