summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-09 19:07:19 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-09 19:07:19 +0000
commit2c4647f8c6d23c999ae959a047104eef49d00993 (patch)
treefa1241406a68d951ded62d04269d85dfb6883a2c /test
parentdf631e8c06d755fd673e4bbf072a7e15766d1e0c (diff)
downloadredmine-2c4647f8c6d23c999ae959a047104eef49d00993.tar.gz
redmine-2c4647f8c6d23c999ae959a047104eef49d00993.zip
Added 'Bulk edit' functionality.
This can be done by clicking on the edit link (little pen icon) at the upper-left corner of the issue list. Most properties can be set (priority, assignee, category, fixed version, start and due dates, done ratio) and a note can be entered. Only issues of the current project can be selected for bulk edit (subproject issues can't). git-svn-id: http://redmine.rubyforge.org/svn/trunk@817 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/functional/projects_controller_test.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb
index b065d82b7..e9ffa3023 100644
--- a/test/functional/projects_controller_test.rb
+++ b/test/functional/projects_controller_test.rb
@@ -83,6 +83,16 @@ class ProjectsControllerTest < Test::Unit::TestCase
assert_response :success
assert_not_nil assigns(:issues)
end
+
+ def test_bulk_edit_issues
+ @request.session[:user_id] = 2
+ # update issues priority
+ post :bulk_edit_issues, :id => 1, :issue_ids => [1, 2], :priority_id => 7, :notes => "Bulk editing"
+ assert_response 302
+ # check that the issues were updated
+ assert_equal [7, 7], Issue.find_all_by_id([1, 2]).collect {|i| i.priority.id}
+ assert_equal "Bulk editing", Issue.find(1).journals.last.notes
+ end
def test_list_news
get :list_news, :id => 1