Welcome to mirror list, hosted at ThFree Co, Russian Federation.

project_member_relation_enum_spec.rb « types « graphql « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a486844a68777d26f25b2c750bcf671042841f3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Types::ProjectMemberRelationEnum do
  specify { expect(described_class.graphql_name).to eq('ProjectMemberRelation') }

  it 'exposes all the existing project member relation type values' do
    relation_types = %w[DIRECT INHERITED DESCENDANTS INVITED_GROUPS SHARED_INTO_ANCESTORS]
    expect(described_class.values.keys).to contain_exactly(*relation_types)
  end
end