File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
test/actionpack/controller Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ def controller_path=(path)
2424 def initialize
2525 super
2626 self . class . controller_path = ""
27- @request = ActionController ::TestRequest . create
27+ @request = ActionController ::TestRequest . create ( self . class )
2828 @response = ActionDispatch ::TestResponse . new
2929
3030 @request . env . delete ( "PATH_INFO" )
Original file line number Diff line number Diff line change @@ -23,9 +23,9 @@ def hello_world; render(template: "test/hello_world"); end
2323 end
2424
2525 def setup
26- @request = ActionController ::TestRequest . create
27- @response = ActionDispatch ::TestResponse . new
2826 @controller = TestController . new
27+ @request = ActionController ::TestRequest . create ( @controller . class )
28+ @response = ActionDispatch ::TestResponse . new
2929 @paths = TestController . view_paths
3030 end
3131
You can’t perform that action at this time.
0 commit comments