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

branch_rule_type_spec.rb « projects « types « graphql « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 54ea4f6857bb72ac73f7ffe2b1a8caa0b680589b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe GitlabSchema.types['BranchRule'] do
  include GraphqlHelpers

  subject { described_class }

  let(:fields) do
    %i[
      name
      isDefault
      branch_protection
      matching_branches_count
      created_at
      updated_at
    ]
  end

  it { is_expected.to require_graphql_authorizations(:read_protected_branch) }

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