summaryrefslogtreecommitdiff
path: root/spec/graphql/types/diff_refs_type_spec.rb
blob: 894191c55ba7d28de89ec1dd01c8541ef641a0ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require 'spec_helper'

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

  specify { expect(described_class).to have_graphql_fields(:head_sha, :base_sha, :start_sha).only }

  specify { expect(described_class.fields['headSha'].type).to be_non_null }
  specify { expect(described_class.fields['baseSha'].type).not_to be_non_null }
  specify { expect(described_class.fields['startSha'].type).to be_non_null }
end