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

18 lines
584 B
Ruby
Raw Normal View History

2019-09-30 21:07:59 +05:30
# frozen_string_literal: true
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe GitlabSchema.types['Commit'] do
2020-05-24 23:13:21 +05:30
specify { expect(described_class.graphql_name).to eq('Commit') }
2019-09-30 21:07:59 +05:30
2020-05-24 23:13:21 +05:30
specify { expect(described_class).to require_graphql_authorizations(:download_code) }
2019-09-30 21:07:59 +05:30
2019-12-21 20:55:43 +05:30
it 'contains attributes related to commit' do
expect(described_class).to have_graphql_fields(
2021-02-22 17:27:13 +05:30
:id, :sha, :short_id, :title, :description, :description_html, :message, :title_html, :authored_date,
2021-01-29 00:20:46 +05:30
:author_name, :author_gravatar, :author, :web_url, :web_path,
2020-03-13 15:44:24 +05:30
:pipelines, :signature_html
2019-12-21 20:55:43 +05:30
)
end
2019-09-30 21:07:59 +05:30
end