@@ -1196,6 +1196,18 class IssuesControllerTest < ActionController::TestCase | |||||
1196 | assert_no_tag 'input', :attributes => {:name => 'issue[watcher_user_ids][]'} |
|
1196 | assert_no_tag 'input', :attributes => {:name => 'issue[watcher_user_ids][]'} | |
1197 | end |
|
1197 | end | |
1198 |
|
1198 | |||
|
1199 | def test_get_new_with_list_custom_field | |||
|
1200 | @request.session[:user_id] = 2 | |||
|
1201 | get :new, :project_id => 1, :tracker_id => 1 | |||
|
1202 | assert_response :success | |||
|
1203 | assert_template 'new' | |||
|
1204 | ||||
|
1205 | assert_tag 'select', | |||
|
1206 | :attributes => {:name => 'issue[custom_field_values][1]'}, | |||
|
1207 | :children => {:count => 4}, | |||
|
1208 | :child => {:tag => 'option', :attributes => {:value => 'MySQL'}, :content => 'MySQL'} | |||
|
1209 | end | |||
|
1210 | ||||
1199 | def test_get_new_with_multi_custom_field |
|
1211 | def test_get_new_with_multi_custom_field | |
1200 | field = IssueCustomField.find(1) |
|
1212 | field = IssueCustomField.find(1) | |
1201 | field.update_attribute :multiple, true |
|
1213 | field.update_attribute :multiple, true |
General Comments 0
You need to be logged in to leave comments.
Login now