class method
self.new
Ruby on Rails 4.2.9
Since v2.2.3Signature
self.new()
No documentation comment.
Source
# File actionview/lib/action_view/test_case.rb, line 24
def initialize
super
self.class.controller_path = ""
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
@request.env.delete('PATH_INFO')
@params = {}
end
Defined in actionview/lib/action_view/test_case.rb line 24
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::TestCase::TestController