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

Fix actionview test failure

Caused by #26092.
This commit is contained in:
Ryuta Kamizono 2016-08-11 14:01:32 +09:00
parent 5cb6b887d4
commit 7924be5a79
2 changed files with 3 additions and 3 deletions

View file

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

View file

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