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
|
|
|
|
mergeRequestsUrl
|
|
|
|
issuesUrl
|
|
|
|
editUrl
|
2020-06-23 00:09:42 +05:30
|
|
|
]
|
|
|
|
|
|
|
|
expect(described_class).to include_graphql_fields(*expected_fields)
|
|
|
|
end
|
|
|
|
end
|