diff options
Diffstat (limited to 'spec/requests/api/project_packages_spec.rb')
-rw-r--r-- | spec/requests/api/project_packages_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/requests/api/project_packages_spec.rb b/spec/requests/api/project_packages_spec.rb index c945db0b46d..2ac9a7d97f1 100644 --- a/spec/requests/api/project_packages_spec.rb +++ b/spec/requests/api/project_packages_spec.rb @@ -207,6 +207,14 @@ RSpec.describe API::ProjectPackages, feature_category: :package_registry do expect(json_response.length).to eq(1) expect(json_response.first['version']).to eq(package2.version) end + + it 'include_versionless has no effect' do + url = "/projects/#{project.id}/packages?package_version=2.0.4&include_versionless=true" + get api(url, user) + + expect(json_response.length).to eq(1) + expect(json_response.first['version']).to eq(package2.version) + end end it_behaves_like 'with versionless packages' |