mirror of
https://github.com/redmine/redmine.git
synced 2026-01-31 03:40:24 +01:00
Allow adding notes when moving issues
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4292 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -41,8 +41,11 @@ class IssueMovesControllerTest < ActionController::TestCase
|
||||
end
|
||||
|
||||
context "#create via bulk move" do
|
||||
should "allow changing the issue priority" do
|
||||
setup do
|
||||
@request.session[:user_id] = 2
|
||||
end
|
||||
|
||||
should "allow changing the issue priority" do
|
||||
post :create, :ids => [1, 2], :priority_id => 6
|
||||
|
||||
assert_redirected_to :controller => 'issues', :action => 'index', :project_id => 'ecookbook'
|
||||
@@ -50,6 +53,15 @@ class IssueMovesControllerTest < ActionController::TestCase
|
||||
assert_equal 6, Issue.find(2).priority_id
|
||||
|
||||
end
|
||||
|
||||
should "allow adding a note when moving" do
|
||||
post :create, :ids => [1, 2], :notes => 'Moving two issues'
|
||||
|
||||
assert_redirected_to :controller => 'issues', :action => 'index', :project_id => 'ecookbook'
|
||||
assert_equal 'Moving two issues', Issue.find(1).journals.last.notes
|
||||
assert_equal 'Moving two issues', Issue.find(2).journals.last.notes
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user