Commit 12c31503 authored by jplang's avatar jplang

Adds a test for #21477.

git-svn-id: https://svn.redmine.org/redmine/trunk@14971 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 29ff4349
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment