diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-22 12:24:43 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-22 12:24:43 +0000 |
commit | ad246e81ad522362916f9a37cc8cdb96d2a325eb (patch) | |
tree | b81a72c7d5f8ed8b51c2bfaca4aae38b9b9dbb48 /test/functional/issues_controller_test.rb | |
parent | a4f989a5e098a4b48659c5f436c327eca0220219 (diff) | |
download | redmine-ad246e81ad522362916f9a37cc8cdb96d2a325eb.tar.gz redmine-ad246e81ad522362916f9a37cc8cdb96d2a325eb.zip |
Code cleanup, use named routes.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11071 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issues_controller_test.rb')
-rw-r--r-- | test/functional/issues_controller_test.rb | 40 |
1 files changed, 25 insertions, 15 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 84dfa62ae..5ec92c00d 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -3155,23 +3155,33 @@ class IssuesControllerTest < ActionController::TestCase assert_response :success assert_template 'bulk_edit' - assert_select 'select[name=?]', 'issue[project_id]' - assert_select 'input[name=?]', 'issue[parent_issue_id]' - - # Project specific custom field, date type - field = CustomField.find(9) - assert !field.is_for_all? - assert_equal 'date', field.field_format - assert_select 'input[name=?]', 'issue[custom_field_values][9]' + assert_select 'ul#bulk-selection' do + assert_select 'li', 2 + assert_select 'li a', :text => 'Bug #1' + end - # System wide custom field - assert CustomField.find(1).is_for_all? - assert_select 'select[name=?]', 'issue[custom_field_values][1]' + assert_select 'form#bulk_edit_form[action=?]', '/issues/bulk_update' do + assert_select 'input[name=?]', 'ids[]', 2 + assert_select 'input[name=?][value=1][type=hidden]', 'ids[]' - # Be sure we don't display inactive IssuePriorities - assert ! IssuePriority.find(15).active? - assert_select 'select[name=?]', 'issue[priority_id]' do - assert_select 'option[value=15]', 0 + assert_select 'select[name=?]', 'issue[project_id]' + assert_select 'input[name=?]', 'issue[parent_issue_id]' + + # Project specific custom field, date type + field = CustomField.find(9) + assert !field.is_for_all? + assert_equal 'date', field.field_format + assert_select 'input[name=?]', 'issue[custom_field_values][9]' + + # System wide custom field + assert CustomField.find(1).is_for_all? + assert_select 'select[name=?]', 'issue[custom_field_values][1]' + + # Be sure we don't display inactive IssuePriorities + assert ! IssuePriority.find(15).active? + assert_select 'select[name=?]', 'issue[priority_id]' do + assert_select 'option[value=15]', 0 + end end end |