summaryrefslogtreecommitdiff
path: root/spec/graphql/types/commit_type_spec.rb
blob: d222287270dfd63d2fe8591af8d9df5d1b563df0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe GitlabSchema.types['Commit'] do
  specify { expect(described_class.graphql_name).to eq('Commit') }

  specify { expect(described_class).to require_graphql_authorizations(:download_code) }

  it 'contains attributes related to commit' do
    expect(described_class).to have_graphql_fields(
      :id, :sha, :title, :description, :description_html, :message, :title_html, :authored_date,
      :author_name, :author_gravatar, :author, :web_url, :web_path, :latest_pipeline,
      :pipelines, :signature_html
    )
  end
end