aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@github.com>2019-02-15 22:33:30 -0800
committerGitHub <noreply@github.com>2019-02-15 22:33:30 -0800
commitfdc05952bd667e37dc0c1326c645a3dd65d450db (patch)
treef212c25a6b780e613e17d426dcd3745ec2f99260 /actionview/test
parent5cdcf7a2e066293b7605ae7fca87a72c8208f45f (diff)
parent7878027ca7de3dc13716f5efb088553fdd04d220 (diff)
downloadrails-fdc05952bd667e37dc0c1326c645a3dd65d450db.tar.gz
rails-fdc05952bd667e37dc0c1326c645a3dd65d450db.tar.bz2
rails-fdc05952bd667e37dc0c1326c645a3dd65d450db.zip
Merge pull request #35281 from y-yagi/show_deprecated_message_instead_of_raise_exception
Show deprecated message instead of raise exception in `compiled_method_container` method
Diffstat (limited to 'actionview/test')
-rw-r--r--actionview/test/template/render_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/actionview/test/template/render_test.rb b/actionview/test/template/render_test.rb
index cda8c942d8..543df7a71a 100644
--- a/actionview/test/template/render_test.rb
+++ b/actionview/test/template/render_test.rb
@@ -367,6 +367,13 @@ module RenderTestCases
end
end
+ def test_without_compiled_method_container_is_deprecated
+ view = ActionView::Base.with_view_paths(ActionController::Base.view_paths)
+ assert_deprecated("ActionView::Base instances must implement `compiled_method_container`") do
+ assert_equal "Hello world!", view.render(file: "test/hello_world")
+ end
+ end
+
def test_render_partial_without_object_does_not_put_partial_name_to_local_assigns
assert_equal "false", @view.render(partial: "test/partial_name_in_local_assigns")
end