2018-05-23 07:55:14 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe GitlabSchema.types['Project'] do
|
2018-06-25 08:59:00 +00:00
|
|
|
it { expect(described_class).to expose_permissions_using(Types::PermissionTypes::Project) }
|
|
|
|
|
2018-05-23 07:55:14 +00:00
|
|
|
it { expect(described_class.graphql_name).to eq('Project') }
|
2018-06-14 13:06:53 +00:00
|
|
|
|
2019-03-04 02:30:32 +00:00
|
|
|
it { expect(described_class).to require_graphql_authorizations(:read_project) }
|
|
|
|
|
2018-06-14 13:06:53 +00:00
|
|
|
describe 'nested merge request' do
|
2019-02-12 13:51:10 +00:00
|
|
|
it { expect(described_class).to have_graphql_field(:merge_requests) }
|
2018-06-14 13:06:53 +00:00
|
|
|
it { expect(described_class).to have_graphql_field(:merge_request) }
|
|
|
|
end
|
2018-06-26 16:31:05 +00:00
|
|
|
|
2018-11-27 15:10:40 +00:00
|
|
|
describe 'nested issues' do
|
|
|
|
it { expect(described_class).to have_graphql_field(:issues) }
|
|
|
|
end
|
|
|
|
|
2018-06-26 16:31:05 +00:00
|
|
|
it { is_expected.to have_graphql_field(:pipelines) }
|
2019-05-22 11:43:35 +00:00
|
|
|
|
|
|
|
it { is_expected.to have_graphql_field(:repository) }
|
2019-05-12 21:10:46 +00:00
|
|
|
|
|
|
|
it { is_expected.to have_graphql_field(:statistics) }
|
2018-05-23 07:55:14 +00:00
|
|
|
end
|