diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2023-11-16 22:17:30 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2023-11-16 22:17:30 +0000 |
commit | d9e72d6ba2ad266ffb8dbbfd3a2ec34780d61c20 (patch) | |
tree | df7b05951b8c3110f3c2e37c22f5a55cfef2491e | |
parent | f75c4c3247182a390e7dabdd20a741a2d1cf21a0 (diff) | |
download | redmine-d9e72d6ba2ad266ffb8dbbfd3a2ec34780d61c20.tar.gz redmine-d9e72d6ba2ad266ffb8dbbfd3a2ec34780d61c20.zip |
Cover more tests for #39553.
git-svn-id: https://svn.redmine.org/redmine/trunk@22449 e93f8b46-1217-0410-a6f0-8f06a7374b81
-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 1f67d37d7..df36e6bbd 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 |