summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2022-06-20 15:15:25 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2022-06-20 15:15:25 +0000
commit4da97ddb3017010d9049e72a9cb31f95a6b2a1b9 (patch)
treeba31a75e5a1182c9e2307cb6892bf1c123bcf8d0 /test/unit
parente6ec471c60b6ed21d37044f6fcce57e4a3d82eee (diff)
downloadredmine-4da97ddb3017010d9049e72a9cb31f95a6b2a1b9.tar.gz
redmine-4da97ddb3017010d9049e72a9cb31f95a6b2a1b9.zip
Revert r21662 (#37255).
git-svn-id: https://svn.redmine.org/redmine/trunk@21663 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/lib/redmine/acts/mentionable_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/lib/redmine/acts/mentionable_test.rb b/test/unit/lib/redmine/acts/mentionable_test.rb
index 0ea6ecfae..cf01c3289 100644
--- a/test/unit/lib/redmine/acts/mentionable_test.rb
+++ b/test/unit/lib/redmine/acts/mentionable_test.rb
@@ -40,7 +40,7 @@ class Redmine::Acts::MentionableTest < ActiveSupport::TestCase
issue = Issue.generate!(project_id: 1, description: '@dlopper and @foo@example.net')
- assert_equal [3, user.id], issue.mentioned_users.ids.sort
+ assert_equal [User.find(3), user], issue.mentioned_users
end
def test_mentioned_users_with_multiple_mentions