Namespace
Methods
C
S
T
Instance Public methods
call_controller(klass, action)
# File actionpack/test/controller/helper_test.rb, line 224
def call_controller(klass, action)
  request  = ActionController::TestRequest.new
  klass.action(action).call(request.env)
end
setup()
# File actionpack/test/controller/helper_test.rb, line 229
def setup
  @request    = ActionController::TestRequest.new
  @response   = ActionController::TestResponse.new
  @request.action = 'index'
end
test_helper_in_a()
# File actionpack/test/controller/helper_test.rb, line 235
def test_helper_in_a
  assert_raise(ActionView::Template::Error) { call_controller(A, "index") }
end
test_helper_in_b()
# File actionpack/test/controller/helper_test.rb, line 239
def test_helper_in_b
  assert_equal 'B', call_controller(B, "index").last.body
end
test_helper_in_c()
# File actionpack/test/controller/helper_test.rb, line 243
def test_helper_in_c
  assert_equal 'C', call_controller(C, "index").last.body
end