summaryrefslogtreecommitdiffstats
path: root/test/functional/issues_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-05-27 08:44:24 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-05-27 08:44:24 +0000
commit9439cae70fab58b8cafdd753aa83135d4279345d (patch)
treef6b7fea28d32be459a36d6e4c5956844e612415f /test/functional/issues_controller_test.rb
parentccb9d4ada9bdf2c24754f0dcf6608d8a3f7e895b (diff)
downloadredmine-9439cae70fab58b8cafdd753aa83135d4279345d.tar.gz
redmine-9439cae70fab58b8cafdd753aa83135d4279345d.zip
Send journal notification after commit (#25794).
git-svn-id: http://svn.redmine.org/redmine/trunk@16573 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issues_controller_test.rb')
-rw-r--r--test/functional/issues_controller_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 49aeb08d0..fef87a2c3 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -3839,6 +3839,7 @@ class IssuesControllerTest < Redmine::ControllerTest
def test_put_update_with_attachment_deletion_should_create_a_single_journal
set_tmp_attachments_directory
+ ActionMailer::Base.deliveries.clear
@request.session[:user_id] = 2
journal = new_record(Journal) do
@@ -3853,6 +3854,12 @@ class IssuesControllerTest < Redmine::ControllerTest
end
assert_equal 'Removing attachments', journal.notes
assert_equal 2, journal.details.count
+
+ assert_select_email do
+ assert_select 'ul.journal.details li', 2
+ assert_select 'del', :text => 'error281.txt'
+ assert_select 'del', :text => 'changeset_iso8859-1.diff'
+ end
end
def test_put_update_with_attachment_deletion_and_failure_should_preserve_selected_attachments