From ce1c65225037622c10568b3e6955cecce7e80fd9 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 23 Jun 2018 05:13:29 +0000 Subject: Upgrade to Rails 5.2.0 (#23630). git-svn-id: http://svn.redmine.org/redmine/trunk@17410 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/issue_test.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/unit/issue_test.rb') 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 -- cgit v1.2.3