Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/api/entities/nuget/metadatum_spec.rb')
-rw-r--r--spec/lib/api/entities/nuget/metadatum_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/lib/api/entities/nuget/metadatum_spec.rb b/spec/lib/api/entities/nuget/metadatum_spec.rb
index cb4e53a1960..2cf26d59279 100644
--- a/spec/lib/api/entities/nuget/metadatum_spec.rb
+++ b/spec/lib/api/entities/nuget/metadatum_spec.rb
@@ -16,6 +16,7 @@ RSpec.describe API::Entities::Nuget::Metadatum, feature_category: :package_regis
let(:expected) do
{
'authors': 'Authors',
+ 'description': 'Description',
'summary': 'Description',
'projectUrl': 'http://sandbox.com/project',
'licenseUrl': 'http://sandbox.com/license',
@@ -50,8 +51,10 @@ RSpec.describe API::Entities::Nuget::Metadatum, feature_category: :package_regis
context 'with default value' do
let(:metadatum) { super().merge(description: nil) }
+ it { is_expected.to have_key(:description) }
it { is_expected.to have_key(:summary) }
- it { is_expected.to eq(expected.merge(summary: '')) }
+
+ it { is_expected.to eq(expected.merge(description: '', summary: '')) }
end
end
end