Rex::Proto::Http::Handler::Proc
Rex::Proto::Http::Request
13 14 15 16 17 18 19 20 21 22
# File 'lib/rex/proto/http/handler/proc.rb.ut.rb', line 13 def test_proc cool = 0 k = Klass.new(nil, Proc.new { |cli, req| cool = 1 }) r = k.on_request(nil, Request::Get.new("/erb.rb.ut.rb.rhtml")) assert_equal(1, cool) end