gitlab-org--gitlab-foss/spec/graphql/types/branch_rule_type_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
416 B
Ruby
Raw Normal View History

# 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