blob: 119ecf8a097983d05c7d883062c61283ab7649f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# 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
created_at
updated_at
]
end
specify { is_expected.to require_graphql_authorizations(:read_protected_branch) }
specify { is_expected.to have_graphql_fields(fields).at_least }
end
|