aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-01-31 15:43:46 -0500
committerGitHub <noreply@github.com>2017-01-31 15:43:46 -0500
commit22f4392bb45adc1dab414d547bff8a2745041597 (patch)
tree2096926c40f65c6e5686b2fd78c290719d42c148 /actionview/test
parentaa86cb62aee4d73a9cad8fcbcc96c7b6baab18ba (diff)
parentd2306900bc1c2b742ea2b29d2bf120d0e9a9407e (diff)
downloadrails-22f4392bb45adc1dab414d547bff8a2745041597.tar.gz
rails-22f4392bb45adc1dab414d547bff8a2745041597.tar.bz2
rails-22f4392bb45adc1dab414d547bff8a2745041597.zip
Merge pull request #27858 from mtsmfm/fix-inherit-from-deprecated-erubis
Fix inherit from deprecated `ActionView::Template::Handlers::Erubis`
Diffstat (limited to 'actionview/test')
-rw-r--r--actionview/test/template/erb/deprecated_erubis_implementation_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/actionview/test/template/erb/deprecated_erubis_implementation_test.rb b/actionview/test/template/erb/deprecated_erubis_implementation_test.rb
index 4a130e6c33..aaf99f85c0 100644
--- a/actionview/test/template/erb/deprecated_erubis_implementation_test.rb
+++ b/actionview/test/template/erb/deprecated_erubis_implementation_test.rb
@@ -5,6 +5,8 @@ module ERBTest
test "Erubis implementation is deprecated" do
assert_deprecated "ActionView::Template::Handlers::Erubis is deprecated and will be removed from Rails 5.2. Switch to ActionView::Template::Handlers::ERB::Erubi instead." do
assert_equal "ActionView::Template::Handlers::ERB::Erubis", ActionView::Template::Handlers::Erubis.to_s
+
+ assert_nothing_raised { Class.new(ActionView::Template::Handlers::Erubis) }
end
end
end