summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-10-25 18:44:41 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-10-25 18:44:41 +0000
commit22e3cba0b712150d7286ff9e641b0c05e028191a (patch)
tree81419a761413cbbcedb1ba14d6c13e165e721861 /test
parent4b045badcfde2eb27b63023ca8f3c30334d7f00f (diff)
downloadredmine-22e3cba0b712150d7286ff9e641b0c05e028191a.tar.gz
redmine-22e3cba0b712150d7286ff9e641b0c05e028191a.zip
Allow changing the Priority when moving issues.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4291 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/functional/issue_moves_controller_test.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/functional/issue_moves_controller_test.rb b/test/functional/issue_moves_controller_test.rb
index 7c4005767..62593ac37 100644
--- a/test/functional/issue_moves_controller_test.rb
+++ b/test/functional/issue_moves_controller_test.rb
@@ -40,6 +40,19 @@ class IssueMovesControllerTest < ActionController::TestCase
assert_equal 2, Issue.find(2).tracker_id
end
+ context "#create via bulk move" do
+ should "allow changing the issue priority" do
+ @request.session[:user_id] = 2
+ post :create, :ids => [1, 2], :priority_id => 6
+
+ assert_redirected_to :controller => 'issues', :action => 'index', :project_id => 'ecookbook'
+ assert_equal 6, Issue.find(1).priority_id
+ assert_equal 6, Issue.find(2).priority_id
+
+ end
+
+ end
+
def test_bulk_copy_to_another_project
@request.session[:user_id] = 2
assert_difference 'Issue.count', 2 do