Add back the check for the multiple attribute

This commit is contained in:
Rafael Mendonça França 2012-12-28 18:06:04 -03:00
parent 96a5b64d3e
commit 1411718c00
1 changed files with 1 additions and 0 deletions

View File

@ -131,6 +131,7 @@ class AssociationTest < ActionView::TestCase
test 'builder creates a select with multiple options for collection associations' do
with_association_for @user, :tags
assert_select 'form select.select#user_tag_ids'
assert_select 'form select[multiple=multiple]'
assert_select 'form select option[value=1]', 'Tag 1'
assert_select 'form select option[value=2]', 'Tag 2'
assert_select 'form select option[value=3]', 'Tag 3'