blob: 277901f00bf4fcd39aca05f27f4990044f989264 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe GitlabSchema.types['BranchRule'] do
include GraphqlHelpers
subject { described_class }
let(:fields) do
%i[
name
branch_protection
created_at
updated_at
]
end
specify { is_expected.to require_graphql_authorizations(:read_protected_branch) }
specify { is_expected.to have_graphql_fields(fields) }
end
|