use new constructor. (Oops! 💣)
This commit is contained in:
parent
9f09848918
commit
2838a1f4ac
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user