Parent

Methods

Class/Module Index [+]

Quicksearch

Rex::Proto::Http::Handler::Proc::UnitTest

Constants

Klass
Request

Public Instance Methods

test_proc() click to toggle source
# File lib/rex/proto/http/handler/proc.rb.ut.rb, line 12
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

[Validate]

Generated with the Darkfish Rdoc Generator 2.