summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2018-12-16 07:00:11 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2018-12-16 07:00:11 +0000
commitfee009f04fbb9d5a6550e54634cb25393d69f919 (patch)
tree4da1be60a1a93b5ff819589781f3f4d7c4fb3d3a /test/functional
parent27c2d2e8f93ff65fa0619597f4ecfe256fc6c02c (diff)
downloadredmine-fee009f04fbb9d5a6550e54634cb25393d69f919.tar.gz
redmine-fee009f04fbb9d5a6550e54634cb25393d69f919.zip
Ability to add private comments from the issue bulk edit page (#22368).
git-svn-id: http://svn.redmine.org/redmine/trunk@17744 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/issues_controller_test.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 91b3efa82..08a2187ff 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -5819,6 +5819,23 @@ class IssuesControllerTest < Redmine::ControllerTest
assert_redirected_to :controller => 'issues', :action => 'index', :project_id => 'ecookbook'
assert_equal 'Moving two issues', Issue.find(1).journals.sort_by(&:id).last.notes
assert_equal 'Moving two issues', Issue.find(2).journals.sort_by(&:id).last.notes
+ assert_equal false, Issue.find(1).journals.sort_by(&:id).last.private_notes
+ assert_equal false, Issue.find(2).journals.sort_by(&:id).last.private_notes
+ end
+
+ def test_bulk_update_with_private_notes
+ @request.session[:user_id] = 2
+ post :bulk_update, :params => {
+ :ids => [1, 2],
+ :notes => 'Moving two issues',
+ :issue => {:private_notes => 'true'}
+ }
+
+ assert_redirected_to :controller => 'issues', :action => 'index', :project_id => 'ecookbook'
+ assert_equal 'Moving two issues', Issue.find(1).journals.sort_by(&:id).last.notes
+ assert_equal 'Moving two issues', Issue.find(2).journals.sort_by(&:id).last.notes
+ assert_equal true, Issue.find(1).journals.sort_by(&:id).last.private_notes
+ assert_equal true, Issue.find(2).journals.sort_by(&:id).last.private_notes
end
def test_bulk_update_parent_id