Skip to content
Myr

set() now allows functions

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent 70667cf · Browse files · 2 files+5 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−3 removed

  • tests:+1 added−1 removed
  • other:+4 added−2 removed

2 files+5 added−3 removed

modified:lib/express/dsl.js+4 added-2 removed
modified:spec/spec.core.js+1 added-1 removed
13 unmodified lines
14 end15 16 it 'should defer using a function'17 set('root', 'spec')18 set('views', function(){ set('root') + '/views' })18 set('views', function(){ return set('root') + '/views' })19 set('views').should.eql 'spec/views'20 end21 end22
71 unmodified lines