diff options
author | Aaron Patterson <tenderlove@github.com> | 2019-01-30 11:57:47 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-30 11:57:47 -0800 |
commit | 535a8b995700a5875a898691b19b88969c22d264 (patch) | |
tree | 536c260987f394bbcb650c20fe401b89ec30443a /actionview/test/actionpack | |
parent | 8ca6bd2e942f9a2652ec20c0c419e9b08f25c2e1 (diff) | |
parent | e17fe52e0e0ef0842b6c409e1110a862c4e005bc (diff) | |
download | rails-535a8b995700a5875a898691b19b88969c22d264.tar.gz rails-535a8b995700a5875a898691b19b88969c22d264.tar.bz2 rails-535a8b995700a5875a898691b19b88969c22d264.zip |
Merge pull request #35093 from rails/av-base-constructor
Tighten up the AV::Base constructor
Diffstat (limited to 'actionview/test/actionpack')
-rw-r--r-- | actionview/test/actionpack/controller/view_paths_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/test/actionpack/controller/view_paths_test.rb b/actionview/test/actionpack/controller/view_paths_test.rb index 7f3fe0fa08..c5238dd746 100644 --- a/actionview/test/actionpack/controller/view_paths_test.rb +++ b/actionview/test/actionpack/controller/view_paths_test.rb @@ -77,7 +77,7 @@ class ViewLoadPathsTest < ActionController::TestCase end def test_template_appends_view_path_correctly - @controller.instance_variable_set :@template, ActionView::Base.new(TestController.view_paths, {}, @controller) + @controller.instance_variable_set :@template, ActionView::Base.with_view_paths(TestController.view_paths, {}, @controller) class_view_paths = TestController.view_paths @controller.append_view_path "foo" @@ -89,7 +89,7 @@ class ViewLoadPathsTest < ActionController::TestCase end def test_template_prepends_view_path_correctly - @controller.instance_variable_set :@template, ActionView::Base.new(TestController.view_paths, {}, @controller) + @controller.instance_variable_set :@template, ActionView::Base.with_view_paths(TestController.view_paths, {}, @controller) class_view_paths = TestController.view_paths @controller.prepend_view_path "baz" |