diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2023-11-16 21:55:34 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2023-11-16 21:55:34 +0000 |
commit | d120f7b7d657fa499697c20ed8bacaa6745457cb (patch) | |
tree | b2fc1072c12adb24853496289bc27a6917dd24cd /test/unit/lib | |
parent | 8eb9c385653a26016cd4e76b1d3c43527e94c112 (diff) | |
download | redmine-d120f7b7d657fa499697c20ed8bacaa6745457cb.tar.gz redmine-d120f7b7d657fa499697c20ed8bacaa6745457cb.zip |
Add tests for #39553.
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@22442 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib')
-rw-r--r-- | test/unit/lib/redmine/acts/mentionable_test.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/unit/lib/redmine/acts/mentionable_test.rb b/test/unit/lib/redmine/acts/mentionable_test.rb index 91fef8eb2..baf505d98 100644 --- a/test/unit/lib/redmine/acts/mentionable_test.rb +++ b/test/unit/lib/redmine/acts/mentionable_test.rb @@ -29,9 +29,12 @@ class Redmine::Acts::MentionableTest < ActiveSupport::TestCase :issues def test_mentioned_users_with_user_mention - issue = Issue.generate!(project_id: 1, description: '@dlopper') + to_test = %w(@dlopper @dlopper! @dlopper? @dlopper. @dlopper,) - assert_equal [User.find(3)], issue.mentioned_users + to_test.each do |item| + issue = Issue.generate!(project_id: 1, description: item) + assert_equal [User.find(3)], issue.mentioned_users + end end def test_mentioned_users_with_user_mention_having_mail_as_login |