debian-mirror-gitlab/spec/graphql/types/error_tracking/sentry_error_stack_trace_type_spec.rb

20 lines
503 B
Ruby
Raw Normal View History

2020-03-13 15:44:24 +05:30
# frozen_string_literal: true
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe GitlabSchema.types['SentryErrorStackTrace'] do
2020-05-24 23:13:21 +05:30
specify { expect(described_class.graphql_name).to eq('SentryErrorStackTrace') }
2020-03-13 15:44:24 +05:30
2020-05-24 23:13:21 +05:30
specify { expect(described_class).to require_graphql_authorizations(:read_sentry_issue) }
2020-03-13 15:44:24 +05:30
it 'exposes the expected fields' do
expected_fields = %i[
issue_id
date_received
stack_trace_entries
]
2020-04-22 19:07:51 +05:30
expect(described_class).to have_graphql_fields(*expected_fields)
2020-03-13 15:44:24 +05:30
end
end