Skip to content
Myr

Added abstract session Store. Closes #172

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

authored by visionmedia · committed by visionmedia · parent 82891ea · Browse files · 2 files+30 added−2 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+30 added−2 removed

  • tests:+6 added−0 removed
  • other:+24 added−2 removed

2 files+30 added−2 removed

modified:lib/express/plugins/session.js+24 added-2 removed
modified:spec/spec.plugins.session.js+6 added
38 unmodified lines
39 get('/login', headers).status.should.eql 20040 get('/login', headers).body.should.eql 'tj'41 end42 43 describe '#toString()'44 it 'should return [Memory Store]'45 memory.toString().should.eql '[Memory Store]'46 end47 end48 49 describe '#fetch()'50 describe 'when the session does not exist'51 it 'should return a new Session'52 memory.fetch('1').should.have_property 'lastAccess'
56 unmodified lines