Fixing failing test

This commit is contained in:
Carlos Antonio da Silva 2009-12-11 01:03:28 -02:00
parent 544c2a78a2
commit 94cb1efe00
1 changed files with 2 additions and 3 deletions

View File

@ -369,9 +369,8 @@ class FormBuilderTest < ActionView::TestCase
end
test 'builder should allow overriding condition to association input' do
with_association_for @user, :company,
:collection => [Company.new(999, 'Teste')],
:options => { :include_blank => false }
with_association_for @user, :company, :include_blank => false,
:collection => [Company.new(999, 'Teste')]
assert_select 'form select.select#user_company_id'
assert_no_select 'form select option[value=1]'
assert_select 'form select option[value=999]', 'Teste'