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

job_spec.rb « ci « permission_types « types « graphql « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 238f086c7ee83c013b8862947070bac3df4d47dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Types::PermissionTypes::Ci::Job do
  it 'has expected permission fields' do
    expected_permissions = [
      :read_job_artifacts, :read_build, :update_build, :cancel_build
    ]

    expect(described_class).to have_graphql_fields(expected_permissions).only
  end
end