debian-mirror-gitlab/spec/graphql/types/diff_refs_type_spec.rb
2020-03-07 23:17:34 +05:30

14 lines
463 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
describe GitlabSchema.types['DiffRefs'] do
it { expect(described_class.graphql_name).to eq('DiffRefs') }
it { is_expected.to have_graphql_fields(:head_sha, :base_sha, :start_sha) }
it { expect(described_class.fields['headSha'].type).to be_non_null }
it { expect(described_class.fields['baseSha'].type).not_to be_non_null }
it { expect(described_class.fields['startSha'].type).to be_non_null }
end