Skip to content

Commit

Permalink
added .settings test
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Mar 22, 2011
1 parent c824da0 commit d11fa1f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/express.test.js
Expand Up @@ -303,6 +303,15 @@ module.exports = {
app.set('title').should.equal('My App');
app.set('something').should.equal('else');
},

'test .settings': function(){
var app = express.createServer();
app.set('title', 'My App');
app.settings.title.should.equal('My App');
app.settings.title = 'Something Else';
app.settings.title.should.equal('Something Else');
app.set('title').should.equal('Something Else');
},

'test #enable()': function(){
var app = express.createServer();
Expand Down

0 comments on commit d11fa1f

Please sign in to comment.