diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-20 16:49:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-20 16:49:51 +0300 |
commit | 71786ddc8e28fbd3cb3fcc4b3ff15e5962a1c82e (patch) | |
tree | 6a2d93ef3fb2d353bb7739e4b57e6541f51cdd71 /spec/finders/projects_finder_spec.rb | |
parent | a7253423e3403b8c08f8a161e5937e1488f5f407 (diff) |
Add latest changes from gitlab-org/gitlab@15-9-stable-eev15.9.0-rc42
Diffstat (limited to 'spec/finders/projects_finder_spec.rb')
-rw-r--r-- | spec/finders/projects_finder_spec.rb | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/spec/finders/projects_finder_spec.rb b/spec/finders/projects_finder_spec.rb index 9fecbfb71fc..297c6f84cef 100644 --- a/spec/finders/projects_finder_spec.rb +++ b/spec/finders/projects_finder_spec.rb @@ -14,11 +14,11 @@ RSpec.describe ProjectsFinder do end let_it_be(:internal_project) do - create(:project, :internal, group: group, name: 'B', path: 'B') + create(:project, :internal, :merge_requests_disabled, group: group, name: 'B', path: 'B') end let_it_be(:public_project) do - create(:project, :public, group: group, name: 'C', path: 'C') + create(:project, :public, :merge_requests_enabled, :issues_disabled, group: group, name: 'C', path: 'C') end let_it_be(:shared_project) do @@ -399,14 +399,18 @@ RSpec.describe ProjectsFinder do let(:params) { { language: ruby.id } } it { is_expected.to match_array([internal_project]) } + end - context 'when project_language_search feature flag disabled' do - before do - stub_feature_flags(project_language_search: false) - end + describe 'when with_issues_enabled is true' do + let(:params) { { with_issues_enabled: true } } - it { is_expected.to match_array([internal_project, public_project]) } - end + it { is_expected.to match_array([internal_project]) } + end + + describe 'when with_merge_requests_enabled is true' do + let(:params) { { with_merge_requests_enabled: true } } + + it { is_expected.to match_array([public_project]) } end describe 'sorting' do |