use new constructor. (Oops! 💣)
This commit is contained in:
parent
9f09848918
commit
2838a1f4ac
@ -24,7 +24,7 @@ def controller_path=(path)
|
|||||||
def initialize
|
def initialize
|
||||||
super
|
super
|
||||||
self.class.controller_path = ""
|
self.class.controller_path = ""
|
||||||
@request = ActionController::TestRequest.new
|
@request = ActionController::TestRequest.create
|
||||||
@response = ActionController::TestResponse.new
|
@response = ActionController::TestResponse.new
|
||||||
|
|
||||||
@request.env.delete('PATH_INFO')
|
@request.env.delete('PATH_INFO')
|
||||||
|
@ -23,7 +23,7 @@ def hello_world; render(:template => 'test/hello_world'); end
|
|||||||
end
|
end
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
@request = ActionController::TestRequest.new
|
@request = ActionController::TestRequest.create
|
||||||
@response = ActionController::TestResponse.new
|
@response = ActionController::TestResponse.new
|
||||||
@controller = TestController.new
|
@controller = TestController.new
|
||||||
@paths = TestController.view_paths
|
@paths = TestController.view_paths
|
||||||
|
Loading…
Reference in New Issue
Block a user