mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
parent
5cb6b887d4
commit
7924be5a79
2 changed files with 3 additions and 3 deletions
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue