Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/graphql/gitlab_schema_spec.rb')
-rw-r--r--spec/graphql/gitlab_schema_spec.rb11
1 files changed, 5 insertions, 6 deletions
diff --git a/spec/graphql/gitlab_schema_spec.rb b/spec/graphql/gitlab_schema_spec.rb
index 02c686af688..60b3edfc279 100644
--- a/spec/graphql/gitlab_schema_spec.rb
+++ b/spec/graphql/gitlab_schema_spec.rb
@@ -4,15 +4,16 @@ require 'spec_helper'
RSpec.describe GitlabSchema do
let_it_be(:connections) { GitlabSchema.connections.all_wrappers }
+ let_it_be(:tracers) { described_class.tracers }
let(:user) { build :user }
it 'uses batch loading' do
- expect(field_instrumenters).to include(BatchLoader::GraphQL)
+ expect(tracers).to include(BatchLoader::GraphQL)
end
it 'enables the generic instrumenter' do
- expect(field_instrumenters).to include(instance_of(::Gitlab::Graphql::GenericTracing))
+ expect(tracers).to include(instance_of(::Gitlab::Graphql::GenericTracing))
end
it 'has the base mutation' do
@@ -219,6 +220,8 @@ RSpec.describe GitlabSchema do
badField
veryBadField
alsoNotAGoodField
+ yetAnotherBadField
+ andYetAnother
}
}
GQL
@@ -308,8 +311,4 @@ RSpec.describe GitlabSchema do
end
end
end
-
- def field_instrumenters
- described_class.instrumenters[:field] + described_class.instrumenters[:field_after_built_ins]
- end
end