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

14 lines
511 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['DiffRefs'] do
2020-05-24 23:13:21 +05:30
specify { expect(described_class.graphql_name).to eq('DiffRefs') }
2019-09-30 21:07:59 +05:30
2020-05-24 23:13:21 +05:30
specify { expect(described_class).to have_graphql_fields(:head_sha, :base_sha, :start_sha).only }
2020-03-07 23:17:34 +05:30
2020-05-24 23:13:21 +05:30
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 }
2019-09-30 21:07:59 +05:30
end