diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-07-08 16:38:01 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-07-08 16:38:01 -0700 |
commit | 2838a1f4acccd2849e7b84cbdb140c13b649e211 (patch) | |
tree | c7752801382b27b7e8e6382173b3a178fdcc5a7e /actionview | |
parent | 9f09848918e5f499e9d07a734345ee106d0fb9f9 (diff) | |
download | rails-2838a1f4acccd2849e7b84cbdb140c13b649e211.tar.gz rails-2838a1f4acccd2849e7b84cbdb140c13b649e211.tar.bz2 rails-2838a1f4acccd2849e7b84cbdb140c13b649e211.zip |
use new constructor. (Oops! :bomb:)
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/test_case.rb | 2 | ||||
-rw-r--r-- | actionview/test/actionpack/controller/view_paths_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/test_case.rb b/actionview/lib/action_view/test_case.rb index 06810ad14d..b4f36c1f78 100644 --- a/actionview/lib/action_view/test_case.rb +++ b/actionview/lib/action_view/test_case.rb @@ -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') diff --git a/actionview/test/actionpack/controller/view_paths_test.rb b/actionview/test/actionpack/controller/view_paths_test.rb index 7fba9ff8ff..2dd27358f7 100644 --- a/actionview/test/actionpack/controller/view_paths_test.rb +++ b/actionview/test/actionpack/controller/view_paths_test.rb @@ -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 |