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/graphql/types/release_type_spec.rb')
-rw-r--r--spec/graphql/types/release_type_spec.rb14
1 files changed, 13 insertions, 1 deletions
diff --git a/spec/graphql/types/release_type_spec.rb b/spec/graphql/types/release_type_spec.rb
index d22a0b4f0fa..feafe5ed519 100644
--- a/spec/graphql/types/release_type_spec.rb
+++ b/spec/graphql/types/release_type_spec.rb
@@ -9,19 +9,31 @@ describe GitlabSchema.types['Release'] do
expected_fields = %w[
tag_name tag_path
description description_html
- name milestones author commit
+ name assets milestones evidences author commit
created_at released_at
]
expect(described_class).to include_graphql_fields(*expected_fields)
end
+ describe 'assets field' do
+ subject { described_class.fields['assets'] }
+
+ it { is_expected.to have_graphql_type(Types::ReleaseAssetsType) }
+ end
+
describe 'milestones field' do
subject { described_class.fields['milestones'] }
it { is_expected.to have_graphql_type(Types::MilestoneType.connection_type) }
end
+ describe 'evidences field' do
+ subject { described_class.fields['evidences'] }
+
+ it { is_expected.to have_graphql_type(Types::EvidenceType.connection_type) }
+ end
+
describe 'author field' do
subject { described_class.fields['author'] }