summaryrefslogtreecommitdiff
path: root/spec/graphql/types/repository_type_spec.rb
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2019-05-22 12:43:35 +0100
committerPhil Hughes <me@iamphill.com>2019-05-22 12:43:35 +0100
commit67a50861953be9347e267795a9ce736dfea5316b (patch)
treeb9546274a629204b8c2ae9a60c5da70ae3a06ba7 /spec/graphql/types/repository_type_spec.rb
parentc841c8771b8d69034c1ceb6e452746d193865cb0 (diff)
downloadgitlab-ce-67a50861953be9347e267795a9ce736dfea5316b.tar.gz
Added repository files to GraphQL API
Diffstat (limited to 'spec/graphql/types/repository_type_spec.rb')
-rw-r--r--spec/graphql/types/repository_type_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/graphql/types/repository_type_spec.rb b/spec/graphql/types/repository_type_spec.rb
new file mode 100644
index 00000000000..8a8238f2a2a
--- /dev/null
+++ b/spec/graphql/types/repository_type_spec.rb
@@ -0,0 +1,11 @@
+require 'spec_helper'
+
+describe GitlabSchema.types['Repository'] do
+ it { expect(described_class.graphql_name).to eq('Repository') }
+
+ it { expect(described_class).to require_graphql_authorizations(:download_code) }
+
+ it { is_expected.to have_graphql_field(:root_ref) }
+
+ it { is_expected.to have_graphql_field(:tree) }
+end