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:
authorPhil Hughes <me@iamphill.com>2019-06-28 10:30:29 +0300
committerPhil Hughes <me@iamphill.com>2019-06-28 10:30:29 +0300
commitd78f7ceac94abe0e8318c6472fc5f7967325a74f (patch)
tree831839462f28797c52b8f2452ce3c659c1874b9a /spec/graphql/types/commit_type_spec.rb
parent80735a2d4b3615e5bd94ea6032b304b58dd2c357 (diff)
Added commit type to tree GraphQL type
Diffstat (limited to 'spec/graphql/types/commit_type_spec.rb')
-rw-r--r--spec/graphql/types/commit_type_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/graphql/types/commit_type_spec.rb b/spec/graphql/types/commit_type_spec.rb
new file mode 100644
index 00000000000..5d8edcf254c
--- /dev/null
+++ b/spec/graphql/types/commit_type_spec.rb
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+describe GitlabSchema.types['Commit'] do
+ it { expect(described_class.graphql_name).to eq('Commit') }
+
+ it { expect(described_class).to require_graphql_authorizations(:download_code) }
+
+ it { expect(described_class).to have_graphql_fields(:id, :sha, :title, :description, :message, :authored_date, :author, :web_url, :latest_pipeline) }
+end