Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (10 sloc) 333 Bytes
require 'minitest/autorun'
require 'rack/mock'
require 'rack/contrib/garbagecollector'
describe 'Rack::GarbageCollector' do
specify 'starts the garbage collector after each request' do
app = lambda { |env|
[200, {'Content-Type'=>'text/plain'}, ['Hello World']] }
Rack::GarbageCollector.new(app).call({})
end
end