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

branch_protection_type_spec.rb « branch_rules « types « graphql « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bbc92fd8fef2466c417427f083f98be86896c992 (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['BranchProtection'] do
  subject { described_class }

  let(:fields) { %i[merge_access_levels push_access_levels allow_force_push] }

  specify { is_expected.to require_graphql_authorizations(:read_protected_branch) }

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