diff options
Diffstat (limited to 'spec/graphql/types/incident_management')
-rw-r--r-- | spec/graphql/types/incident_management/timeline_event_tag_type_spec.rb | 18 | ||||
-rw-r--r-- | spec/graphql/types/incident_management/timeline_event_type_spec.rb | 1 |
2 files changed, 19 insertions, 0 deletions
diff --git a/spec/graphql/types/incident_management/timeline_event_tag_type_spec.rb b/spec/graphql/types/incident_management/timeline_event_tag_type_spec.rb new file mode 100644 index 00000000000..831a598ab66 --- /dev/null +++ b/spec/graphql/types/incident_management/timeline_event_tag_type_spec.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +require 'spec_helper' + +RSpec.describe GitlabSchema.types['TimelineEventTagType'] do + specify { expect(described_class.graphql_name).to eq('TimelineEventTagType') } + + specify { expect(described_class).to require_graphql_authorizations(:read_incident_management_timeline_event_tag) } + + it 'exposes the expected fields' do + expected_fields = %i[ + id + name + ] + + expect(described_class).to have_graphql_fields(*expected_fields) + end +end diff --git a/spec/graphql/types/incident_management/timeline_event_type_spec.rb b/spec/graphql/types/incident_management/timeline_event_type_spec.rb index 5a6bc461f20..6805e0cdc9b 100644 --- a/spec/graphql/types/incident_management/timeline_event_type_spec.rb +++ b/spec/graphql/types/incident_management/timeline_event_type_spec.rb @@ -21,6 +21,7 @@ RSpec.describe GitlabSchema.types['TimelineEventType'] do occurred_at created_at updated_at + timeline_event_tags ] expect(described_class).to have_graphql_fields(*expected_fields) |