summaryrefslogtreecommitdiffstats
path: root/test/unit/issue_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2018-06-23 05:13:29 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2018-06-23 05:13:29 +0000
commitce1c65225037622c10568b3e6955cecce7e80fd9 (patch)
tree86e19714cda5281053cb496b610564dde3841c45 /test/unit/issue_test.rb
parent157a291b6691dc5d694c84db0548b93b8561ab74 (diff)
downloadredmine-ce1c65225037622c10568b3e6955cecce7e80fd9.tar.gz
redmine-ce1c65225037622c10568b3e6955cecce7e80fd9.zip
Upgrade to Rails 5.2.0 (#23630).
git-svn-id: http://svn.redmine.org/redmine/trunk@17410 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/issue_test.rb')
-rw-r--r--test/unit/issue_test.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb
index 375a1f8c2..40be6b66a 100644
--- a/test/unit/issue_test.rb
+++ b/test/unit/issue_test.rb
@@ -1953,11 +1953,15 @@ class IssueTest < ActiveSupport::TestCase
user = User.find(3)
user.members.update_all ["mail_notification = ?", false]
user.update! :mail_notification => 'only_assigned'
-
issue = Issue.find(2)
+
issue.assigned_to = nil
assert_include user.mail, issue.recipients
issue.save!
+ assert_include user.mail, issue.recipients
+
+ issue.assigned_to = User.find(2)
+ issue.save!
assert !issue.recipients.include?(user.mail)
end