debian-mirror-gitlab/spec/graphql/types/project_type_spec.rb

25 lines
774 B
Ruby
Raw Normal View History

2018-11-08 19:23:39 +05:30
require 'spec_helper'
describe GitlabSchema.types['Project'] do
it { expect(described_class).to expose_permissions_using(Types::PermissionTypes::Project) }
it { expect(described_class.graphql_name).to eq('Project') }
2019-07-07 11:18:12 +05:30
it { expect(described_class).to require_graphql_authorizations(:read_project) }
2018-11-08 19:23:39 +05:30
describe 'nested merge request' do
2019-07-07 11:18:12 +05:30
it { expect(described_class).to have_graphql_field(:merge_requests) }
2018-11-08 19:23:39 +05:30
it { expect(described_class).to have_graphql_field(:merge_request) }
end
2019-02-15 15:39:39 +05:30
describe 'nested issues' do
it { expect(described_class).to have_graphql_field(:issues) }
end
2018-11-08 19:23:39 +05:30
it { is_expected.to have_graphql_field(:pipelines) }
2019-09-04 21:01:54 +05:30
it { is_expected.to have_graphql_field(:repository) }
it { is_expected.to have_graphql_field(:statistics) }
2018-11-08 19:23:39 +05:30
end