summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-03-07 08:20:18 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-03-07 08:20:18 +0000
commit3789a8539e39bd3afe70b99b5eee7b52e3ed584f (patch)
tree21c403ee8960d73c66d0251b2fe7c7b71836465a /test
parentf821eaf7221ca05e86efb49d25ac7e3a236e63f7 (diff)
downloadredmine-3789a8539e39bd3afe70b99b5eee7b52e3ed584f.tar.gz
redmine-3789a8539e39bd3afe70b99b5eee7b52e3ed584f.zip
Missing notification if previous assignee was a group (#19197).
git-svn-id: http://svn.redmine.org/redmine/trunk@14049 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/issue_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb
index 7f3e9484d..25ccb0812 100644
--- a/test/unit/issue_test.rb
+++ b/test/unit/issue_test.rb
@@ -2614,4 +2614,12 @@ class IssueTest < ActiveSupport::TestCase
issue.tracker = Tracker.find(2)
assert_equal IssueStatus.find(3), issue.status
end
+
+ def test_assigned_to_was_with_a_group
+ group = Group.find(10)
+
+ issue = Issue.generate!(:assigned_to => group)
+ issue.reload.assigned_to = nil
+ assert_equal group, issue.assigned_to_was
+ end
end