Use the index on hidden field

This commit is contained in:
Rafael Mendonça França 2014-04-14 11:53:47 -03:00
parent d40d39214c
commit 38426458d6
1 changed files with 1 additions and 1 deletions

View File

@ -1420,7 +1420,7 @@ class FormHelperTest < ActionView::TestCase
expected = whole_form("/posts", "new_post", "new_post") do
"<input checked='checked' id='post_1_tag_ids_1' name='post[1][tag_ids][]' type='checkbox' value='1' />" +
"<label for='post_1_tag_ids_1'>Tag 1</label>" +
"<input name='post[tag_ids][]' type='hidden' value='' />"
"<input name='post[1][tag_ids][]' type='hidden' value='' />"
end
assert_dom_equal expected, output_buffer