Fix test to fit the described case

This commit is contained in:
Rafael Mendonça França 2011-12-03 00:39:47 -02:00
parent c912cafe47
commit 46e373a3ce
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ class CollectionInputTest < ActionView::TestCase
end
test 'collection input with select type with multiple attribute should generate required html attribute without blank option' do
with_input_for @user, :name, :select, :include_blank => true, :input_html => {:multiple => true}, :collection => ['Jose' , 'Carlos']
with_input_for @user, :name, :select, :include_blank => false, :input_html => {:multiple => true}, :collection => ['Jose' , 'Carlos']
assert_select 'select.required'
assert_select 'select[required]'
end