diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-31 15:08:50 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-31 15:08:50 +0000 |
commit | ccab6fb4df8bc12220334618e56d911c4d0e447c (patch) | |
tree | a8c7bb66fb4c36c97e7e1b4f27744fcd93c3bcf3 /spec/lib/gitlab/analytics | |
parent | 820c5f6d5c816ba4b742f2ae2e08cc548314531a (diff) | |
download | gitlab-ce-ccab6fb4df8bc12220334618e56d911c4d0e447c.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/analytics')
-rw-r--r-- | spec/lib/gitlab/analytics/cycle_analytics/request_params_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/lib/gitlab/analytics/cycle_analytics/request_params_spec.rb b/spec/lib/gitlab/analytics/cycle_analytics/request_params_spec.rb index 3c171d684d6..11aa8e3e529 100644 --- a/spec/lib/gitlab/analytics/cycle_analytics/request_params_spec.rb +++ b/spec/lib/gitlab/analytics/cycle_analytics/request_params_spec.rb @@ -21,6 +21,19 @@ RSpec.describe Gitlab::Analytics::CycleAnalytics::RequestParams, feature_categor } })) end + + context 'with a subgroup project' do + let_it_be(:sub_group) { create(:group, parent: root_group) } + let_it_be_with_refind(:subgroup_project) { create(:project, group: sub_group) } + let(:namespace) { subgroup_project.project_namespace } + + it 'includes the correct group_path' do + expect(attributes).to match(hash_including({ + group_path: "groups/#{subgroup_project.namespace.full_path}", + full_path: subgroup_project.full_path + })) + end + end end end end |