Commit 063ede42 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch...

Merge branch '199707-transient-failure-in-spec-models-concerns-mentionable_spec-rb-258' into 'master'

Resolve "Transient failure in spec/models/concerns/mentionable_spec.rb:258"

Closes #199707

See merge request gitlab-org/gitlab!24026
parents 832eb5f8 2194aecc
......@@ -263,7 +263,7 @@ RSpec.shared_examples 'mentions in notes' do |mentionable_type|
it 'returns all mentionable mentions' do
expect(mentionable.user_mentions.count).to eq 1
expect(mentionable.referenced_users).to eq [user, user2]
expect(mentionable.referenced_users).to match_array([user, user2])
expect(mentionable.referenced_projects(user)).to eq [mentionable.project].compact # epic.project is nil, and we want empty []
expect(mentionable.referenced_groups(user)).to eq [group]
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment