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

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

describe GitlabSchema.types['Label'] do
  it 'has the correct fields' do
    expected_fields = [:description, :description_html, :title, :color, :text_color]

    is_expected.to have_graphql_fields(*expected_fields)
  end

  it { is_expected.to require_graphql_authorizations(:read_label) }
end