test/spec_session_memcache.rb in rack-1.5.5 vs test/spec_session_memcache.rb in rack-1.6.0.beta
- old
+ new
@@ -272,10 +272,10 @@
session = pool.pool.get(session_id)
session.size.should.equal tnum+1 # counter
session['counter'].should.equal 2 # meeeh
tnum = rand(7).to_i+5
- r = Array.new(tnum) do |i|
+ r = Array.new(tnum) do
app = Rack::Utils::Context.new pool, time_delta
req = Rack::MockRequest.new app
Thread.new(req) do |run|
run.get('/', "HTTP_COOKIE" => cookie, 'rack.multithread' => true)
end