project_type_spec.rb 774 字节
Newer Older
1 2 3
require 'spec_helper'

describe GitlabSchema.types['Project'] do
4 5
  it { expect(described_class).to expose_permissions_using(Types::PermissionTypes::Project) }

6
  it { expect(described_class.graphql_name).to eq('Project') }
7

L
Luke Duncalfe 已提交
8 9
  it { expect(described_class).to require_graphql_authorizations(:read_project) }

10
  describe 'nested merge request' do
11
    it { expect(described_class).to have_graphql_field(:merge_requests) }
12 13
    it { expect(described_class).to have_graphql_field(:merge_request) }
  end
B
Bob Van Landuyt 已提交
14

P
Phil Hughes 已提交
15 16 17 18
  describe 'nested issues' do
    it { expect(described_class).to have_graphql_field(:issues) }
  end

B
Bob Van Landuyt 已提交
19
  it { is_expected.to have_graphql_field(:pipelines) }
20 21

  it { is_expected.to have_graphql_field(:repository) }
22 23

  it { is_expected.to have_graphql_field(:statistics) }
24
end