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

18 lines
591 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(
2020-10-24 23:57:45 +05:30
:id, :sha, :title, :description, :description_html, :message, :title_html, :authored_date,
:author_name, :author_gravatar, :author, :web_url, :web_path, :latest_pipeline,
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