Skip to content

Commit

Permalink
set the NODE_ENV to development for the development view cache test
Browse files Browse the repository at this point in the history
  • Loading branch information
lihanli committed Oct 6, 2012
1 parent eeef763 commit 3b6d683
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/app.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ describe('app.path()', function(){


describe('in development', function(){ describe('in development', function(){
it('should disable "view cache"', function(){ it('should disable "view cache"', function(){
process.env.NODE_ENV = 'development';
var app = express(); var app = express();
app.enabled('view cache').should.be.false; app.enabled('view cache').should.be.false;
process.env.NODE_ENV = 'test';
}) })
}) })


Expand Down

0 comments on commit 3b6d683

Please sign in to comment.