From 36390b6bdc75fca70e7a9d74c6270e3f40e77799 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Mon, 28 May 2018 11:08:09 +0900 Subject: Remove unnecessary `with_default_enforce_utf8` method Because the same method is defined in `FormWithTest` of the parent class. https://github.com/rails/rails/blob/fe9547b6fb60d92af181c8613166fa4322f8e307/actionview/test/template/form_helper/form_with_test.rb#L19..L26 --- actionview/test/template/form_helper/form_with_test.rb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/actionview/test/template/form_helper/form_with_test.rb b/actionview/test/template/form_helper/form_with_test.rb index 6b65d740eb..ed1683bad2 100644 --- a/actionview/test/template/form_helper/form_with_test.rb +++ b/actionview/test/template/form_helper/form_with_test.rb @@ -2347,13 +2347,4 @@ class FormWithActsLikeFormForTest < FormWithTest ensure I18n.locale = old_locale end - - def with_default_enforce_utf8(value) - old_value = ActionView::Helpers::FormTagHelper.default_enforce_utf8 - ActionView::Helpers::FormTagHelper.default_enforce_utf8 = value - - yield - ensure - ActionView::Helpers::FormTagHelper.default_enforce_utf8 = old_value - end end -- cgit v1.2.3