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

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

require 'spec_helper'

RSpec.describe GitlabSchema.types['PushAccessLevel'] do
  subject { described_class }

  let(:fields) { %i[access_level access_level_description] }

  specify { is_expected.to require_graphql_authorizations(:read_protected_branch) }

  specify { is_expected.to have_graphql_fields(fields).at_least }
end