spec/graphql/tracing/skylight_tracing_spec.rb in graphql-1.8.18 vs spec/graphql/tracing/skylight_tracing_spec.rb in graphql-1.9.0.pre1
- old
+ new
@@ -12,21 +12,22 @@
end
class SchemaWithoutTransactionName < GraphQL::Schema
query(Query)
use(GraphQL::Tracing::SkylightTracing)
+ if TESTING_INTERPRETER
+ use GraphQL::Execution::Interpreter
+ end
end
class SchemaWithTransactionName < GraphQL::Schema
query(Query)
use(GraphQL::Tracing::SkylightTracing, set_endpoint_name: true)
+ if TESTING_INTERPRETER
+ use GraphQL::Execution::Interpreter
+ end
end
-
- class SchemaWithScalarTrace < GraphQL::Schema
- query(Query)
- use(GraphQL::Tracing::SkylightTracing, trace_scalars: true)
- end
end
before do
Skylight.clear_all
end
@@ -46,12 +47,7 @@
SkylightTest::SchemaWithTransactionName.execute "{ int }", context: { set_skylight_endpoint_name: false }
assert_equal [], Skylight::ENDPOINT_NAMES
# Override with `true`
SkylightTest::SchemaWithoutTransactionName.execute "{ int }", context: { set_skylight_endpoint_name: true }
assert_equal ["GraphQL/query.<anonymous>"], Skylight::ENDPOINT_NAMES
- end
-
- it "traces scalars when trace_scalars is true" do
- SkylightTest::SchemaWithScalarTrace.execute "query X { int }"
- assert_includes Skylight::TITLE_NAMES, "graphql.Query.int"
end
end