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-05-22 14:43:35 +0300
committerPhil Hughes <me@iamphill.com>2019-05-22 14:43:35 +0300
commit67a50861953be9347e267795a9ce736dfea5316b (patch)
treeb9546274a629204b8c2ae9a60c5da70ae3a06ba7 /spec/graphql/types/tree/blob_type_spec.rb
parentc841c8771b8d69034c1ceb6e452746d193865cb0 (diff)
Added repository files to GraphQL API
Diffstat (limited to 'spec/graphql/types/tree/blob_type_spec.rb')
-rw-r--r--spec/graphql/types/tree/blob_type_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/graphql/types/tree/blob_type_spec.rb b/spec/graphql/types/tree/blob_type_spec.rb
new file mode 100644
index 00000000000..fa29bb5fff7
--- /dev/null
+++ b/spec/graphql/types/tree/blob_type_spec.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+describe Types::Tree::BlobType do
+ it { expect(described_class.graphql_name).to eq('Blob') }
+
+ it { expect(described_class).to have_graphql_fields(:id, :name, :type, :path, :flat_path) }
+end