diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 12:55:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 12:55:51 +0300 |
commit | e8d2c2579383897a1dd7f9debd359abe8ae8373d (patch) | |
tree | c42be41678c2586d49a75cabce89322082698334 /spec/presenters/packages/nuget/package_metadata_presenter_spec.rb | |
parent | fc845b37ec3a90aaa719975f607740c22ba6a113 (diff) |
Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42
Diffstat (limited to 'spec/presenters/packages/nuget/package_metadata_presenter_spec.rb')
-rw-r--r-- | spec/presenters/packages/nuget/package_metadata_presenter_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/presenters/packages/nuget/package_metadata_presenter_spec.rb b/spec/presenters/packages/nuget/package_metadata_presenter_spec.rb index d5e7b23d785..8bb0694f39c 100644 --- a/spec/presenters/packages/nuget/package_metadata_presenter_spec.rb +++ b/spec/presenters/packages/nuget/package_metadata_presenter_spec.rb @@ -5,7 +5,7 @@ require 'spec_helper' RSpec.describe Packages::Nuget::PackageMetadataPresenter do include_context 'with expected presenters dependency groups' - let_it_be(:package) { create(:nuget_package, :with_metadatum) } + let_it_be(:package) { create(:nuget_package, :with_symbol_package, :with_metadatum) } let_it_be(:tag1) { create(:packages_tag, name: 'tag1', package: package) } let_it_be(:tag2) { create(:packages_tag, name: 'tag2', package: package) } let_it_be(:presenter) { described_class.new(package) } @@ -19,7 +19,7 @@ RSpec.describe Packages::Nuget::PackageMetadataPresenter do end describe '#archive_url' do - let_it_be(:expected_suffix) { "/api/v4/projects/#{package.project_id}/packages/nuget/download/#{package.name}/#{package.version}/#{package.package_files.last.file_name}" } + let_it_be(:expected_suffix) { "/api/v4/projects/#{package.project_id}/packages/nuget/download/#{package.name}/#{package.version}/#{package.package_files.with_format('nupkg').last.file_name}" } subject { presenter.archive_url } |