diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-14 03:12:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-14 03:12:08 +0300 |
commit | 25618c1e28302ca7c4a881b96f5e72d1070566e0 (patch) | |
tree | e32d8dd6a680c514ca25bb58060c9268d0369d90 /spec/finders | |
parent | 85770eb3a25c9d9183ca7fce72d4d74c1552a53f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/finders')
-rw-r--r-- | spec/finders/packages/group_packages_finder_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/finders/packages/group_packages_finder_spec.rb b/spec/finders/packages/group_packages_finder_spec.rb index d7f62bdfbb4..3254c436674 100644 --- a/spec/finders/packages/group_packages_finder_spec.rb +++ b/spec/finders/packages/group_packages_finder_spec.rb @@ -147,6 +147,19 @@ RSpec.describe Packages::GroupPackagesFinder do end end + context 'with exact package_name' do + let_it_be(:named_package) { create(:maven_package, project: project, name: 'maven') } + let_it_be(:other_package) { create(:maven_package, project: project, name: 'maventoo') } + + let(:params) { { exact_name: true, package_name: package_name } } + + context 'as complete name' do + let(:package_name) { 'maven' } + + it { is_expected.to match_array([named_package]) } + end + end + it_behaves_like 'concerning versionless param' it_behaves_like 'concerning package statuses' end |