Skip to content

Commit

Permalink
Fixed deprecated selector in form_collections_helper_test.rb with fro…
Browse files Browse the repository at this point in the history
…m catch_invalid_selector. Sweet.
  • Loading branch information
kaspth committed Jun 16, 2014
1 parent 82e0705 commit 648f748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionview/test/template/form_collections_helper_test.rb
Expand Up @@ -218,7 +218,7 @@ def with_collection_check_boxes(*args, &block)
collection = [Category.new(1, 'Category 1'), Category.new(2, 'Category 2')]
with_collection_check_boxes :user, :category_ids, collection, :id, :name, {}, {name: "user[other_category_ids][]"}

assert_select "input[type=hidden][name='user[other_category_ids][]'][value=]", :count => 1
assert_select "input[type=hidden][name='user[other_category_ids][]'][value='']", :count => 1
end

test 'collection check boxes generates a hidden field with index if it was provided' do
Expand Down

0 comments on commit 648f748

Please sign in to comment.