From 6841d0cc6d19002f3f85343d582310756aadf2c1 Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Fri, 29 Mar 2019 11:04:16 -0700 Subject: Deprecate render layout with an absolute path This has similar problems to render file:. I've never seen this used, and believe it's a relic from when all templates could be rendered from an absolute path. --- actionview/test/actionpack/controller/layout_test.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'actionview/test') diff --git a/actionview/test/actionpack/controller/layout_test.rb b/actionview/test/actionpack/controller/layout_test.rb index 838b564c5d..f946e4360d 100644 --- a/actionview/test/actionpack/controller/layout_test.rb +++ b/actionview/test/actionpack/controller/layout_test.rb @@ -233,7 +233,9 @@ class LayoutSetInResponseTest < ActionController::TestCase def test_absolute_pathed_layout @controller = AbsolutePathLayoutController.new - get :hello + assert_deprecated do + get :hello + end assert_equal "layout_test.erb hello.erb", @response.body.strip end end -- cgit v1.2.3