summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-03-08 09:41:22 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-03-08 09:41:22 +0000
commit5cc616b75b5081e09e48f939b41d96f1cd985d17 (patch)
treebbb41deed1c79c5a248e02cb4990c29777b5a730 /test
parent86c77bedd49a4d058e4cb5718c503f65c33c42e7 (diff)
downloadredmine-5cc616b75b5081e09e48f939b41d96f1cd985d17.tar.gz
redmine-5cc616b75b5081e09e48f939b41d96f1cd985d17.zip
Merged r14049 (#19197).
git-svn-id: http://svn.redmine.org/redmine/branches/3.0-stable@14056 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 33635e7a5..72157e538 100644
--- a/test/unit/issue_test.rb
+++ b/test/unit/issue_test.rb
@@ -2591,4 +2591,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