use new constructor. (Oops! 💣)

This commit is contained in:
Aaron Patterson 2015-07-08 16:38:01 -07:00
parent 9f09848918
commit 2838a1f4ac
2 changed files with 2 additions and 2 deletions

@ -24,7 +24,7 @@ def controller_path=(path)
def initialize
super
self.class.controller_path = ""
@request = ActionController::TestRequest.new
@request = ActionController::TestRequest.create
@response = ActionController::TestResponse.new
@request.env.delete('PATH_INFO')

@ -23,7 +23,7 @@ def hello_world; render(:template => 'test/hello_world'); end
end
def setup
@request = ActionController::TestRequest.new
@request = ActionController::TestRequest.create
@response = ActionController::TestResponse.new
@controller = TestController.new
@paths = TestController.view_paths