diff options
Diffstat (limited to 'test/spec_session_cookie.rb')
-rw-r--r-- | test/spec_session_cookie.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/spec_session_cookie.rb b/test/spec_session_cookie.rb index 66490b53..e325584d 100644 --- a/test/spec_session_cookie.rb +++ b/test/spec_session_cookie.rb @@ -338,4 +338,11 @@ describe Rack::Session::Cookie do response = response_for(:app => session_id, :request => request) response.body.should.match(/foo/) end + + it "allows modifying session data with session data from middleware in front" do + request = { 'rack.session' => { :foo => 'bar' }} + response = response_for(:app => incrementor, :request => request) + response.body.should.match(/counter/) + response.body.should.match(/foo/) + end end |