2019-06-20 08:02:33 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 09:08:32 +00:00
|
|
|
RSpec.describe GitlabSchema.types['Label'] do
|
2019-06-20 08:02:33 +00:00
|
|
|
it 'has the correct fields' do
|
2021-02-19 09:10:35 +00:00
|
|
|
expected_fields = [
|
|
|
|
:id,
|
|
|
|
:description,
|
|
|
|
:description_html,
|
|
|
|
:title,
|
|
|
|
:color,
|
|
|
|
:text_color,
|
|
|
|
:created_at,
|
|
|
|
:updated_at
|
|
|
|
]
|
2019-06-20 08:02:33 +00:00
|
|
|
|
2020-03-18 18:09:35 +00:00
|
|
|
expect(described_class).to have_graphql_fields(*expected_fields)
|
2019-06-20 08:02:33 +00:00
|
|
|
end
|
2019-06-18 16:31:06 +00:00
|
|
|
|
2020-05-07 06:09:38 +00:00
|
|
|
specify { expect(described_class).to require_graphql_authorizations(:read_label) }
|
2019-06-20 08:02:33 +00:00
|
|
|
end
|