]> source.dussan.org Git - redmine.git/commitdiff
Merged r21664 to 5.0-stable (#37138).
authorMarius Balteanu <marius.balteanu@zitec.com>
Mon, 20 Jun 2022 15:17:46 +0000 (15:17 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Mon, 20 Jun 2022 15:17:46 +0000 (15:17 +0000)
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@21666 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/acts/mentionable_test.rb

index cf01c328981d022645c2710bde3e7256731aba88..0ea6ecfae0f1d7e943cfb7cf7af5ef08c98e2967 100644 (file)
@@ -40,7 +40,7 @@ class Redmine::Acts::MentionableTest < ActiveSupport::TestCase
 
     issue = Issue.generate!(project_id: 1, description: '@dlopper and @foo@example.net')
 
-    assert_equal [User.find(3), user], issue.mentioned_users
+    assert_equal [3, user.id], issue.mentioned_users.ids.sort
   end
 
   def test_mentioned_users_with_multiple_mentions