##// END OF EJS Templates
Fixes functional test broken by r2246....
Jean-Philippe Lang -
r2246:a64928fa6be2
parent child
Show More
@@ -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 :subject => 'This is the test_new issue',
372 # empty subject
373 # empty description
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 :input, :attributes => { :name => 'issue[subject]',
380 assert_tag :textarea, :attributes => { :name => 'issue[description]' },
381 :value => 'This is the test_new issue' }
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