From 67a50861953be9347e267795a9ce736dfea5316b Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Wed, 22 May 2019 12:43:35 +0100 Subject: Added repository files to GraphQL API --- spec/graphql/types/tree/blob_type_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 spec/graphql/types/tree/blob_type_spec.rb (limited to 'spec/graphql/types/tree/blob_type_spec.rb') 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 -- cgit v1.2.1 From 4644a2daf5ec5e86e2b2989f04e99e4f081f6fef Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Tue, 4 Jun 2019 14:38:18 +0100 Subject: Add web_url to tree entry in GraphQL API --- spec/graphql/types/tree/blob_type_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/graphql/types/tree/blob_type_spec.rb') diff --git a/spec/graphql/types/tree/blob_type_spec.rb b/spec/graphql/types/tree/blob_type_spec.rb index fa29bb5fff7..b12e214ca84 100644 --- a/spec/graphql/types/tree/blob_type_spec.rb +++ b/spec/graphql/types/tree/blob_type_spec.rb @@ -5,5 +5,5 @@ 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) } + it { expect(described_class).to have_graphql_fields(:id, :name, :type, :path, :flat_path, :web_url) } end -- cgit v1.2.1