diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-12-12 12:37:56 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-12-12 12:37:56 +0000 |
commit | a5fd84f00eece323b9b43e70cb8f386cd92b762d (patch) | |
tree | 6078ea6e842edb9cae61b414008c6efbcc6253f8 /test/unit/issue_test.rb | |
parent | b095389a60f5f06c095a08ec85084bb73134754c (diff) | |
download | redmine-a5fd84f00eece323b9b43e70cb8f386cd92b762d.tar.gz redmine-a5fd84f00eece323b9b43e70cb8f386cd92b762d.zip |
Don't include locked user in assignable users (#21477).
git-svn-id: http://svn.redmine.org/redmine/trunk@14972 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/issue_test.rb')
-rw-r--r-- | test/unit/issue_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb index 40ee48bc4..852755473 100644 --- a/test/unit/issue_test.rb +++ b/test/unit/issue_test.rb @@ -1935,6 +1935,14 @@ class IssueTest < ActiveSupport::TestCase assert !issue.assignable_users.include?(User.anonymous) end + def test_assignable_users_should_not_include_locked_user + user = User.generate! + issue = Issue.generate!(:author => user) + user.lock! + + assert !issue.assignable_users.include?(user) + end + test "#assignable_users should include the current assignee" do user = User.generate! issue = Issue.generate!(:assigned_to => user) |