debian-mirror-gitlab/spec/graphql/types/commit_type_spec.rb

17 lines
508 B
Ruby
Raw Normal View History

2019-09-30 21:07:59 +05:30
# 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-12-21 20:55:43 +05:30
it 'contains attributes related to commit' do
expect(described_class).to have_graphql_fields(
:id, :sha, :title, :description, :message, :authored_date,
2019-12-26 22:10:19 +05:30
:author_name, :author, :web_url, :latest_pipeline, :pipelines, :signature_html
2019-12-21 20:55:43 +05:30
)
end
2019-09-30 21:07:59 +05:30
end