Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-10-31 09:11:42 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-10-31 09:11:42 +0300
commit01cc900e7cc64797e39a7889032325d8c32bfe46 (patch)
tree59c70ceeb8375f65fb44f951f4594a5fe15fb7e0 /spec
parentb6cb3bc944b0ca803e758d9e9da3790c0f310d21 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec')
-rw-r--r--spec/helpers/events_helper_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/helpers/events_helper_spec.rb b/spec/helpers/events_helper_spec.rb
index 6ffca876361..7e6c0a9086a 100644
--- a/spec/helpers/events_helper_spec.rb
+++ b/spec/helpers/events_helper_spec.rb
@@ -22,7 +22,8 @@ RSpec.describe EventsHelper, factory_default: :keep, feature_category: :user_pro
it 'returns a link to the author' do
name = user.name
- expect(helper.link_to_author(event)).to eq(link_to(name, user_path(user.username), title: name))
+ expect(helper.link_to_author(event)).to eq(link_to(name, user_path(user.username), title: name,
+ data: { user_id: user.id, username: user.username }, class: 'js-user-link'))
end
it 'returns the author name if the author is not present' do
@@ -35,7 +36,8 @@ RSpec.describe EventsHelper, factory_default: :keep, feature_category: :user_pro
allow(helper).to receive(:current_user).and_return(user)
name = _('You')
- expect(helper.link_to_author(event, self_added: true)).to eq(link_to(name, user_path(user.username), title: name))
+ expect(helper.link_to_author(event, self_added: true)).to eq(link_to(name, user_path(user.username), title: name,
+ data: { user_id: user.id, username: user.username }, class: 'js-user-link'))
end
end