Use the index on hidden field
This commit is contained in:
parent
d40d39214c
commit
38426458d6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue