Class: ActionView::TestCase::TestController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- ActionView::TestCase::TestController
- 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
-
#params ⇒ Object
Returns the value of attribute params.
-
#request ⇒ Object
Returns the value of attribute request.
-
#response ⇒ Object
Returns the value of attribute response.
Attributes inherited from ActionController::Base
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ TestController
constructor
A new instance of TestController.
Methods inherited from ActionController::Base
#append_view_path, append_view_path, call, controller_class_name, #controller_class_name, controller_name, #controller_name, #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
#initialize ⇒ TestController
Returns a new instance of TestController.
32 33 34 35 36 37 38 |
# File 'lib/action_view/test_case.rb', line 32 def initialize @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new @params = {} send(:initialize_current_url) end |
Instance Attribute Details
#params ⇒ Object
Returns the value of attribute params.
26 27 28 |
# File 'lib/action_view/test_case.rb', line 26 def params @params end |
#request ⇒ Object
Returns the value of attribute request.
26 27 28 |
# File 'lib/action_view/test_case.rb', line 26 def request @request end |
#response ⇒ Object
Returns the value of attribute response.
26 27 28 |
# File 'lib/action_view/test_case.rb', line 26 def response @response end |
Class Method Details
.controller_path ⇒ Object
28 29 30 |
# File 'lib/action_view/test_case.rb', line 28 def self.controller_path '' end |