diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-25 13:12:56 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-25 13:12:56 +0000 |
commit | 1ad255155949930d2a7bdf667b415939fd71e16d (patch) | |
tree | 6cc4801f6379e3e5e7f178e417d158f410c3a9ac /test/functional | |
parent | 41f3bae9170c5231a85c1b85b1596fba8e2f6d77 (diff) | |
download | redmine-1ad255155949930d2a7bdf667b415939fd71e16d.tar.gz redmine-1ad255155949930d2a7bdf667b415939fd71e16d.zip |
Adds ability to bulk copy issues (#1847).
This can be done by checking the 'Copy' checkbox on the 'Move' form.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2313 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/issues_controller_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 093797e38..b3978c39c 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -672,6 +672,16 @@ class IssuesControllerTest < Test::Unit::TestCase assert_equal 2, Issue.find(1).tracker_id assert_equal 2, Issue.find(2).tracker_id end + + def test_bulk_copy_to_another_project + @request.session[:user_id] = 1 + assert_difference 'Issue.count', 2 do + assert_no_difference 'Project.find(1).issues.count' do + post :move, :ids => [1, 2], :new_project_id => 2, :copy_options => {:copy => '1'} + end + end + assert_redirected_to 'projects/ecookbook/issues' + end def test_context_menu_one_issue @request.session[:user_id] = 2 |