@@ -369,16 +369,16 class IssuesControllerTest < Test::Unit::TestCase | |||||
369 | @request.session[:user_id] = 2 |
|
369 | @request.session[:user_id] = 2 | |
370 | post :new, :project_id => 1, |
|
370 | post :new, :project_id => 1, | |
371 | :issue => {:tracker_id => 1, |
|
371 | :issue => {:tracker_id => 1, | |
372 |
|
|
372 | # empty subject | |
373 |
|
|
373 | :subject => '', | |
374 | :description => '', |
|
374 | :description => 'This is a description', | |
375 | :priority_id => 6, |
|
375 | :priority_id => 6, | |
376 | :custom_field_values => {'1' => 'Oracle', '2' => 'Value for field 2'}} |
|
376 | :custom_field_values => {'1' => 'Oracle', '2' => 'Value for field 2'}} | |
377 | assert_response :success |
|
377 | assert_response :success | |
378 | assert_template 'new' |
|
378 | assert_template 'new' | |
379 |
|
379 | |||
380 |
assert_tag : |
|
380 | assert_tag :textarea, :attributes => { :name => 'issue[description]' }, | |
381 |
|
|
381 | :content => 'This is a description' | |
382 | assert_tag :select, :attributes => { :name => 'issue[priority_id]' }, |
|
382 | assert_tag :select, :attributes => { :name => 'issue[priority_id]' }, | |
383 | :child => { :tag => 'option', :attributes => { :selected => 'selected', |
|
383 | :child => { :tag => 'option', :attributes => { :selected => 'selected', | |
384 | :value => '6' }, |
|
384 | :value => '6' }, |
General Comments 0
You need to be logged in to leave comments.
Login now