1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

View file

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

View file

@ -23,7 +23,7 @@ class ViewLoadPathsTest < ActionController::TestCase
end
def setup
@request = ActionController::TestRequest.new
@request = ActionController::TestRequest.create
@response = ActionController::TestResponse.new
@controller = TestController.new
@paths = TestController.view_paths