Class: Rex::Proto::Http::Handler::Erb::UnitTest

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
lib/rex/proto/http/handler/erb.rb.ut.rb

Constant Summary collapse

Klass =
Rex::Proto::Http::Handler::Erb
Request =
Rex::Proto::Http::Request

Instance Method Summary collapse

Instance Method Details

#test_erbObject



14
15
16
17
18
19
20
# File 'lib/rex/proto/http/handler/erb.rb.ut.rb', line 14

def test_erb
  k = Klass.new(nil, File.dirname(__FILE__))
  r = k.on_request(nil, Request::Get.new("/erb.rb.ut.rb.rhtml"))

  assert_not_nil(r)
  assert_equal("foo 4\n", r.body)
end