summaryrefslogtreecommitdiff
path: root/spec/graphql/types/repository_type_spec.rb
blob: f746e75b5742c912032cd35dd396698fd7e7375e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require 'spec_helper'

describe GitlabSchema.types['Repository'] do
  it { expect(described_class.graphql_name).to eq('Repository') }

  it { expect(described_class).to require_graphql_authorizations(:download_code) }

  it { expect(described_class).to have_graphql_field(:root_ref) }

  it { expect(described_class).to have_graphql_field(:tree) }
end