aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-07-08 16:38:01 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-07-08 16:38:01 -0700
commit2838a1f4acccd2849e7b84cbdb140c13b649e211 (patch)
treec7752801382b27b7e8e6382173b3a178fdcc5a7e /actionview
parent9f09848918e5f499e9d07a734345ee106d0fb9f9 (diff)
downloadrails-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.rb2
-rw-r--r--actionview/test/actionpack/controller/view_paths_test.rb2
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