2020-01-31 21:08:52 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 09:08:32 +00:00
|
|
|
RSpec.describe GitlabSchema.types['SentryErrorStackTraceEntry'] do
|
2020-05-07 06:09:38 +00:00
|
|
|
specify { expect(described_class.graphql_name).to eq('SentryErrorStackTraceEntry') }
|
2020-01-31 21:08:52 +00:00
|
|
|
|
|
|
|
it 'exposes the expected fields' do
|
|
|
|
expected_fields = %i[
|
|
|
|
function
|
|
|
|
col
|
|
|
|
line
|
|
|
|
file_name
|
|
|
|
trace_context
|
|
|
|
]
|
|
|
|
|
2020-03-18 18:09:35 +00:00
|
|
|
expect(described_class).to have_graphql_fields(*expected_fields)
|
2020-01-31 21:08:52 +00:00
|
|
|
end
|
|
|
|
end
|