diff options
Diffstat (limited to 'test/unit/issue_test.rb')
-rw-r--r-- | test/unit/issue_test.rb | 6 |
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 |