File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
spec/datadog/tracing/contrib/graphql Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
33require 'datadog/tracing/contrib/support/spec_helper'
4- require 'datadog/tracing/contrib/graphql/unified_trace'
4+ require 'graphql'
5+
6+ RSpec . describe "Datadog::Tracing::Contrib::GraphQL::UnifiedTrace" do
7+ before do
8+ skip 'UnifiedTrace is only supported in GraphQL 2.0.19 and above' if Gem ::Version . new ( ::GraphQL ::VERSION ) < Gem ::Version . new ( '2.0.19' )
9+ require 'datadog/tracing/contrib/graphql/unified_trace'
10+ end
11+
12+ let ( :described_class ) { Datadog ::Tracing ::Contrib ::GraphQL ::UnifiedTrace }
513
6- RSpec . describe Datadog ::Tracing ::Contrib ::GraphQL ::UnifiedTrace do
714 describe '.serialize_error_locations' do
815 subject ( :result ) { described_class . serialize_error_locations ( locations ) }
916
You can’t perform that action at this time.
0 commit comments