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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-05-15 03:10:46 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-05-15 03:10:46 +0300
commitd0ba8fad6dd850a76848a5032e7380a6db66748e (patch)
tree3fde17650968919f601592ebea17865d2c58b48a /spec/graphql
parent80088b7f88992a64ef5253d57838b0b3463ce8b1 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/graphql')
-rw-r--r--spec/graphql/types/packages/maven/metadatum_type_spec.rb13
-rw-r--r--spec/graphql/types/packages/nuget/metadatum_type_spec.rb13
2 files changed, 26 insertions, 0 deletions
diff --git a/spec/graphql/types/packages/maven/metadatum_type_spec.rb b/spec/graphql/types/packages/maven/metadatum_type_spec.rb
new file mode 100644
index 00000000000..cf24af1456e
--- /dev/null
+++ b/spec/graphql/types/packages/maven/metadatum_type_spec.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+RSpec.describe GitlabSchema.types['MavenMetadata'] do
+ it 'includes maven metadatum fields' do
+ expected_fields = %w[
+ id created_at updated_at path app_group app_version app_name
+ ]
+
+ expect(described_class).to include_graphql_fields(*expected_fields)
+ end
+end
diff --git a/spec/graphql/types/packages/nuget/metadatum_type_spec.rb b/spec/graphql/types/packages/nuget/metadatum_type_spec.rb
new file mode 100644
index 00000000000..e5baa7522e4
--- /dev/null
+++ b/spec/graphql/types/packages/nuget/metadatum_type_spec.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+RSpec.describe GitlabSchema.types['NugetMetadata'] do
+ it 'includes nuget metadatum fields' do
+ expected_fields = %w[
+ id license_url project_url icon_url
+ ]
+
+ expect(described_class).to include_graphql_fields(*expected_fields)
+ end
+end