aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/activerecord
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-04-17 15:29:37 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-04-17 15:29:37 -0300
commitcbb917455f306cf5818644b162f22be09f77d4b2 (patch)
tree60500a2db1f865523b5824d54decce811dfc17ae /actionview/test/activerecord
parentc91a531ff384f70f72e7e0e213424d3e42a48c27 (diff)
parent89ff1f82f01bd70e12ec1b45049be30ac262df30 (diff)
downloadrails-cbb917455f306cf5818644b162f22be09f77d4b2.tar.gz
rails-cbb917455f306cf5818644b162f22be09f77d4b2.tar.bz2
rails-cbb917455f306cf5818644b162f22be09f77d4b2.zip
Merge pull request #14738 from tilsammans/pull/11407
Remove wrapping div with inline styles for hidden form fields. Conflicts: actionview/CHANGELOG.md
Diffstat (limited to 'actionview/test/activerecord')
-rw-r--r--actionview/test/activerecord/form_helper_activerecord_test.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/actionview/test/activerecord/form_helper_activerecord_test.rb b/actionview/test/activerecord/form_helper_activerecord_test.rb
index 0a9628da8d..0a62f49f35 100644
--- a/actionview/test/activerecord/form_helper_activerecord_test.rb
+++ b/actionview/test/activerecord/form_helper_activerecord_test.rb
@@ -59,12 +59,13 @@ class FormHelperActiveRecordTest < ActionView::TestCase
protected
def hidden_fields(method = nil)
- txt = %{<div style="display:none">}
- txt << %{<input name="utf8" type="hidden" value="&#x2713;" />}
+ txt = %{<input name="utf8" type="hidden" value="&#x2713;" />}
+
if method && !%w(get post).include?(method.to_s)
txt << %{<input name="_method" type="hidden" value="#{method}" />}
end
- txt << %{</div>}
+
+ txt
end
def form_text(action = "/", id = nil, html_class = nil, remote = nil, multipart = nil, method = nil)
@@ -88,4 +89,4 @@ class FormHelperActiveRecordTest < ActionView::TestCase
form_text(action, id, html_class, remote, multipart, method) + hidden_fields(method) + contents + "</form>"
end
-end \ No newline at end of file
+end