diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-21 18:07:13 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-21 18:07:13 +0000 |
commit | d380b256b976811e54dc4eb7c9ba3ecc5a9ab5be (patch) | |
tree | 08e2636afd8c045961c04b05361ad4880c767aa2 /spec/requests/users_controller_spec.rb | |
parent | d4aa95428e9ae63a476196bc8c1193d3de253530 (diff) | |
download | gitlab-ce-d380b256b976811e54dc4eb7c9ba3ecc5a9ab5be.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/requests/users_controller_spec.rb')
-rw-r--r-- | spec/requests/users_controller_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/requests/users_controller_spec.rb b/spec/requests/users_controller_spec.rb index 608284c05f3..11d8be24e06 100644 --- a/spec/requests/users_controller_spec.rb +++ b/spec/requests/users_controller_spec.rb @@ -464,6 +464,18 @@ RSpec.describe UsersController, feature_category: :user_management do expect(response.body).not_to be_empty end + it 'renders the correct url for issues and work items' do + work_item = create(:work_item, :task, project: project) + issue = create(:issue, project: project) + EventCreateService.new.open_issue(work_item, public_user) + EventCreateService.new.open_issue(issue, public_user) + + get user_calendar_activities_url public_user.username + + expect(response.body).to include(project_work_items_path(project, work_item.iid, iid_path: true)) + expect(response.body).to include(project_issue_path(project, issue)) + end + it 'avoids N+1 queries', :request_store do get user_calendar_activities_url public_user.username |