diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-16 15:07:22 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-16 15:07:22 +0300 |
commit | 77ded523f119396c72e4bcbcd008ff6b84134ef4 (patch) | |
tree | f9fc698ab476ab8b0e1d0b879ebc48560583fce3 /spec/finders | |
parent | 34a59635a9f25499193aa71a2cae3581f9892cbb (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/finders')
-rw-r--r-- | spec/finders/projects_finder_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/finders/projects_finder_spec.rb b/spec/finders/projects_finder_spec.rb index f7afd96fa09..e570b49e1da 100644 --- a/spec/finders/projects_finder_spec.rb +++ b/spec/finders/projects_finder_spec.rb @@ -482,6 +482,19 @@ RSpec.describe ProjectsFinder, feature_category: :groups_and_projects do it { is_expected.to match_array([internal_project]) } end + describe 'filter by organization_id' do + let_it_be(:organization) { create(:organization) } + let_it_be(:organization_project) { create(:project, organization: organization) } + + let(:params) { { organization_id: organization.id } } + + before do + organization_project.add_maintainer(current_user) + end + + it { is_expected.to match_array([organization_project]) } + end + describe 'when with_issues_enabled is true' do let(:params) { { with_issues_enabled: true } } |