Class: ActionView::TestCase::TestController

Inherits:
ActionController::Base show all
Defined in:
lib/action_view/test_case.rb

Constant Summary

Constants inherited from ActionController::Base

ActionController::Base::DEFAULT_RENDER_STATUS_CODE

Constants included from ActionController::StatusCodes

ActionController::StatusCodes::STATUS_CODES, ActionController::StatusCodes::SYMBOL_TO_STATUS_CODE

Instance Attribute Summary collapse

Attributes inherited from ActionController::Base

#action_name

Instance Method Summary collapse

Methods inherited from ActionController::Base

append_view_path, #append_view_path, call, controller_class_name, #controller_class_name, controller_name, #controller_name, #controller_path, controller_path, filter_parameter_logging, hidden_actions, hide_action, #prepend_view_path, prepend_view_path, #process, process, #send_response, #session_enabled?, #url_for, view_paths, #view_paths, view_paths=, #view_paths=

Constructor Details

#initializeTestController

Returns a new instance of TestController.



68
69
70
71
72
73
74
# File 'lib/action_view/test_case.rb', line 68

def initialize
  @request = ActionController::TestRequest.new
  @response = ActionController::TestResponse.new
  
  @params = {}
  send(:initialize_current_url)
end

Instance Attribute Details

#paramsObject

Returns the value of attribute params.



66
67
68
# File 'lib/action_view/test_case.rb', line 66

def params
  @params
end

#requestObject

Returns the value of attribute request.



66
67
68
# File 'lib/action_view/test_case.rb', line 66

def request
  @request
end

#responseObject

Returns the value of attribute response.



66
67
68
# File 'lib/action_view/test_case.rb', line 66

def response
  @response
end