diff --git a/lib/application.js b/lib/application.js index c40ae4a6..2aae86db 100644 --- a/lib/application.js +++ b/lib/application.js @@ -82,10 +82,6 @@ app.defaultConfiguration = function(){ this.set('views', process.cwd() + '/views'); this.set('jsonp callback name', 'callback'); - this.configure('development', function(){ - this.set('json spaces', 2); - }); - if (this.get('env') === 'production') { this.enable('view cache'); }; diff --git a/test/res.json.js b/test/res.json.js index b439f244..5712fc3e 100644 --- a/test/res.json.js +++ b/test/res.json.js @@ -52,7 +52,7 @@ describe('res', function(){ }) }) }) - + describe('when given an object', function(){ it('should respond with json', function(done){ var app = express(); @@ -95,14 +95,7 @@ describe('res', function(){ }) describe('"json spaces" setting', function(){ - it('should default to 2 in development', function(){ - process.env.NODE_ENV = 'development'; - var app = express(); - app.get('json spaces').should.equal(2); - process.env.NODE_ENV = 'test'; - }) - - it('should be undefined otherwise', function(){ + it('should be undefined by default', function(){ var app = express(); assert(undefined === app.get('json spaces')); }) @@ -125,7 +118,7 @@ describe('res', function(){ }) }) }) - + describe('.json(status, object)', function(){ it('should respond with json and set the .statusCode', function(done){ var app = express(); diff --git a/test/res.jsonp.js b/test/res.jsonp.js index 76f07c1f..9f7769e3 100644 --- a/test/res.jsonp.js +++ b/test/res.jsonp.js @@ -181,14 +181,7 @@ describe('res', function(){ }) describe('"json spaces" setting', function(){ - it('should default to 2 in development', function(){ - process.env.NODE_ENV = 'development'; - var app = express(); - app.get('json spaces').should.equal(2); - process.env.NODE_ENV = 'test'; - }) - - it('should be undefined otherwise', function(){ + it('should be undefined by default', function(){ var app = express(); assert(undefined === app.get('json spaces')); })