1 require 'abstract_unit'
3 # Provide some static controllers.
4 class BenchmarkedController
< ActionController
::Base
6 render
:nothing => true
14 class BenchmarkTest
< Test
::Unit::TestCase
16 def method_missing(*args
)
21 @controller = BenchmarkedController
.new
22 # benchmark doesn't do anything unless a logger is set
23 @controller.logger
= MockLogger
.new
24 @request, @response = ActionController
::TestRequest.new
, ActionController
::TestResponse.new
25 @request.host
= "test.actioncontroller.i"
28 def test_with_http_1_0_request
30 assert_nothing_raised
{ get
:public_action }