aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/template/form_helper/form_with_test.rb
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2017-04-27 12:08:02 -0700
committerGitHub <noreply@github.com>2017-04-27 12:08:02 -0700
commit55e3476ece18f47c0469b7e7459b1f90322d0b32 (patch)
treef5df3ee11e4d73d2886bed9a4a6d75efb724cece /actionview/test/template/form_helper/form_with_test.rb
parent6a3cb7a206e2f55128616035a480cd8a5ce58401 (diff)
parentdc46a71e5409f2b0105cd964ff6a62edcb934795 (diff)
downloadrails-55e3476ece18f47c0469b7e7459b1f90322d0b32.tar.gz
rails-55e3476ece18f47c0469b7e7459b1f90322d0b32.tar.bz2
rails-55e3476ece18f47c0469b7e7459b1f90322d0b32.zip
Merge pull request #28844 from kyuden/remove_unnecessary_attributes_of_select_in_form_with
Remove unnecessary `skip_default_ids` and `allow_method_names_outside_object` attributes of select tag in `form_with`
Diffstat (limited to 'actionview/test/template/form_helper/form_with_test.rb')
-rw-r--r--actionview/test/template/form_helper/form_with_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/actionview/test/template/form_helper/form_with_test.rb b/actionview/test/template/form_helper/form_with_test.rb
index a09dd468dd..bff0643fb0 100644
--- a/actionview/test/template/form_helper/form_with_test.rb
+++ b/actionview/test/template/form_helper/form_with_test.rb
@@ -302,6 +302,7 @@ class FormWithActsLikeFormForTest < FormWithTest
concat f.text_field(:title)
concat f.text_area(:body)
concat f.check_box(:secret)
+ concat f.select(:category, %w( animal economy sports ))
concat f.submit("Create post")
concat f.button("Create post")
concat f.button {
@@ -315,6 +316,7 @@ class FormWithActsLikeFormForTest < FormWithTest
"<textarea name='post[body]'>\nBack to the hill and over it again!</textarea>" \
"<input name='post[secret]' type='hidden' value='0' />" \
"<input name='post[secret]' checked='checked' type='checkbox' value='1' />" \
+ "<select name='post[category]'><option value='animal'>animal</option>\n<option value='economy'>economy</option>\n<option value='sports'>sports</option></select>" \
"<input name='commit' data-disable-with='Create post' type='submit' value='Create post' />" \
"<button name='button' type='submit'>Create post</button>" \
"<button name='button' type='submit'><span>Create post</span></button>"