summaryrefslogtreecommitdiff
path: root/spec/graphql/types/release_links_type_spec.rb
blob: d505f0a4b5cb536a423c1daa6ba23ceb3d0bac9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe GitlabSchema.types['ReleaseLinks'] do
  it { expect(described_class).to require_graphql_authorizations(:download_code) }

  it 'has the expected fields' do
    expected_fields = %w[
      selfUrl
      mergeRequestsUrl
      issuesUrl
      editUrl
    ]

    expect(described_class).to include_graphql_fields(*expected_fields)
  end
end