diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-25 00:12:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-25 00:12:08 +0300 |
commit | 774f6e6e9824de147c12dcec745b16a049f86146 (patch) | |
tree | 81befe12f28d52f10c6a24a79ab0bbbb11668acc /spec/finders | |
parent | 4bb797f25563205cf495f4dd5366e037e88831ab (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/finders')
-rw-r--r-- | spec/finders/projects_finder_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/finders/projects_finder_spec.rb b/spec/finders/projects_finder_spec.rb index a795df4dec6..b8ba1176ea2 100644 --- a/spec/finders/projects_finder_spec.rb +++ b/spec/finders/projects_finder_spec.rb @@ -66,6 +66,18 @@ RSpec.describe ProjectsFinder, feature_category: :groups_and_projects do it { is_expected.to eq([internal_project]) } end + describe 'with full_paths' do + let_it_be(:second_public_project) do + create(:project, :public, :merge_requests_enabled, :issues_disabled, group: group, name: 'second-public', path: 'second-public') + end + + context 'only returns projects matching the provided full paths' do + let(:params) { { full_paths: [public_project.full_path, second_public_project.full_path] } } + + it { is_expected.to match_array([public_project, second_public_project]) } + end + end + describe 'with id_after' do context 'only returns projects with a project id greater than given' do let(:params) { { id_after: internal_project.id } } |