Sha256: 1a2185917aeddf26bf0992ef0971c9e0c2b88be01003fefe76d73cc161ff6940

Contents?: true

Size: 501 Bytes

Versions: 2

Compression:

Stored size: 501 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::Erb::UnitTest < Test::Unit::TestCase

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

	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

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
librex-0.0.68 lib/rex/proto/http/handler/erb.rb.ut.rb
librex-0.0.66 lib/rex/proto/http/handler/erb.rb.ut.rb