2019-12-21 20:55:43 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-09-04 21:01:54 +05:30
|
|
|
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 { is_expected.to have_graphql_field(:root_ref) }
|
|
|
|
|
|
|
|
it { is_expected.to have_graphql_field(:tree) }
|
|
|
|
end
|