aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2019-01-31 13:47:03 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2019-01-31 13:47:13 -0800
commiteda0f574f129fcd5ad1fc58b55cb6d1db71ea95c (patch)
tree4e3579e847147e4e54f994c6f7cce590ab92bcdf /actionview/test
parent315b9def911b9d8519926e59b02a65a7eca16d30 (diff)
downloadrails-eda0f574f129fcd5ad1fc58b55cb6d1db71ea95c.tar.gz
rails-eda0f574f129fcd5ad1fc58b55cb6d1db71ea95c.tar.bz2
rails-eda0f574f129fcd5ad1fc58b55cb6d1db71ea95c.zip
add tests to make sure deprecated API is still supported
Diffstat (limited to 'actionview/test')
-rw-r--r--actionview/test/template/render_test.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/actionview/test/template/render_test.rb b/actionview/test/template/render_test.rb
index ab67423ea1..76ffe3415d 100644
--- a/actionview/test/template/render_test.rb
+++ b/actionview/test/template/render_test.rb
@@ -336,6 +336,16 @@ module RenderTestCases
assert_equal "Hello: davidHello: mary", @view.render(partial: "test/customer", collection: customers)
end
+ def test_deprecated_constructor
+ assert_deprecated do
+ ActionView::Base.new
+ end
+
+ assert_deprecated do
+ ActionView::Base.new ["/a"]
+ 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