From d78f7ceac94abe0e8318c6472fc5f7967325a74f Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Fri, 28 Jun 2019 08:30:29 +0100 Subject: Added commit type to tree GraphQL type --- spec/graphql/types/commit_type_spec.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 spec/graphql/types/commit_type_spec.rb (limited to 'spec/graphql/types/commit_type_spec.rb') 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 -- cgit v1.2.3