summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-12-12 12:36:11 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-12-12 12:36:11 +0000
commitb095389a60f5f06c095a08ec85084bb73134754c (patch)
tree52784a0e3bc87a3bd51cd75306ce55e698bf00cd /test
parent11579abe8ce715b46e42a68199f8ed2d485e912a (diff)
downloadredmine-b095389a60f5f06c095a08ec85084bb73134754c.tar.gz
redmine-b095389a60f5f06c095a08ec85084bb73134754c.zip
Adds a test for #21477.
git-svn-id: http://svn.redmine.org/redmine/trunk@14971 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/issue_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb
index 1dea102a5..40ee48bc4 100644
--- a/test/unit/issue_test.rb
+++ b/test/unit/issue_test.rb
@@ -1929,6 +1929,12 @@ class IssueTest < ActiveSupport::TestCase
assert issue.assignable_users.include?(non_project_member)
end
+ def test_assignable_users_should_not_include_anonymous_user
+ issue = Issue.generate!(:author => User.anonymous)
+
+ assert !issue.assignable_users.include?(User.anonymous)
+ end
+
test "#assignable_users should include the current assignee" do
user = User.generate!
issue = Issue.generate!(:assigned_to => user)