2020-06-23 00:09:42 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
RSpec.describe GitlabSchema.types['ReleaseLinks'] do
|
|
|
|
it { expect(described_class).to require_graphql_authorizations(:download_code) }
|
2020-06-23 00:09:42 +05:30
|
|
|
|
|
|
|
it 'has the expected fields' do
|
|
|
|
expected_fields = %w[
|
2020-07-28 23:09:34 +05:30
|
|
|
selfUrl
|
2021-01-29 00:20:46 +05:30
|
|
|
openedMergeRequestsUrl
|
|
|
|
mergedMergeRequestsUrl
|
|
|
|
closedMergeRequestsUrl
|
|
|
|
openedIssuesUrl
|
|
|
|
closedIssuesUrl
|
2020-07-28 23:09:34 +05:30
|
|
|
editUrl
|
2020-06-23 00:09:42 +05:30
|
|
|
]
|
|
|
|
|
|
|
|
expect(described_class).to include_graphql_fields(*expected_fields)
|
|
|
|
end
|
|
|
|
end
|