Fixes functional test broken by r2246.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2248 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2009-01-07 20:21:27 +00:00
parent 09620eef76
commit a64928fa6b
1 changed files with 5 additions and 5 deletions

View File

@ -369,16 +369,16 @@ class IssuesControllerTest < Test::Unit::TestCase
@request.session[:user_id] = 2 @request.session[:user_id] = 2
post :new, :project_id => 1, post :new, :project_id => 1,
:issue => {:tracker_id => 1, :issue => {:tracker_id => 1,
:subject => 'This is the test_new issue', # empty subject
# empty description :subject => '',
:description => '', :description => 'This is a description',
:priority_id => 6, :priority_id => 6,
:custom_field_values => {'1' => 'Oracle', '2' => 'Value for field 2'}} :custom_field_values => {'1' => 'Oracle', '2' => 'Value for field 2'}}
assert_response :success assert_response :success
assert_template 'new' assert_template 'new'
assert_tag :input, :attributes => { :name => 'issue[subject]', assert_tag :textarea, :attributes => { :name => 'issue[description]' },
:value => 'This is the test_new issue' } :content => 'This is a description'
assert_tag :select, :attributes => { :name => 'issue[priority_id]' }, assert_tag :select, :attributes => { :name => 'issue[priority_id]' },
:child => { :tag => 'option', :attributes => { :selected => 'selected', :child => { :tag => 'option', :attributes => { :selected => 'selected',
:value => '6' }, :value => '6' },