diff options
Diffstat (limited to 'spec/finders/packages/pypi/packages_finder_spec.rb')
-rw-r--r-- | spec/finders/packages/pypi/packages_finder_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/finders/packages/pypi/packages_finder_spec.rb b/spec/finders/packages/pypi/packages_finder_spec.rb index 3957eb188da..26cfaa29a0c 100644 --- a/spec/finders/packages/pypi/packages_finder_spec.rb +++ b/spec/finders/packages/pypi/packages_finder_spec.rb @@ -64,6 +64,16 @@ RSpec.describe Packages::Pypi::PackagesFinder do end it { is_expected.to contain_exactly(package2, package3, package4) } + + context 'when package registry is disabled for one project' do + before do + project2.project_feature.update!(package_registry_access_level: ProjectFeature::DISABLED) + end + + it 'filters the packages from the disabled project' do + expect(subject).to contain_exactly(package2, package3) + end + end end end end |