Sha256: fcb0e673d69886f7119cfc1a788f9a7b963e4e8374695e34a99ddbb6e616bd12
Contents?: true
Size: 504 Bytes
Versions: 2
Compression:
Stored size: 504 Bytes
Contents
#!/usr/bin/env ruby # -*- coding: binary -*- $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', '..')) require 'test/unit' require 'rex/proto/http' class Rex::Proto::Http::Handler::Proc::UnitTest < Test::Unit::TestCase Klass = Rex::Proto::Http::Handler::Proc Request = Rex::Proto::Http::Request 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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
librex-0.0.68 | lib/rex/proto/http/handler/proc.rb.ut.rb |
librex-0.0.66 | lib/rex/proto/http/handler/proc.rb.ut.rb |