2019-06-28 07:30:29 +00:00
|
|
|
# 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) }
|
|
|
|
|
2019-10-03 18:06:11 +00:00
|
|
|
it 'contains attributes related to commit' do
|
|
|
|
expect(described_class).to have_graphql_fields(
|
|
|
|
:id, :sha, :title, :description, :message, :authored_date,
|
2019-11-18 18:06:53 +00:00
|
|
|
:author_name, :author, :web_url, :latest_pipeline, :pipelines, :signature_html
|
2019-10-03 18:06:11 +00:00
|
|
|
)
|
|
|
|
end
|
2019-06-28 07:30:29 +00:00
|
|
|
end
|