summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2019-05-13 09:40:46 +0000
committerNick Thomas <nick@gitlab.com>2019-05-13 09:40:46 +0000
commitdacc96460e215e427781f8461de4e0bc68a9b8cc (patch)
tree299f449c107cf9434693e4a164978fc3323bce05
parentd5fb60c52b79fa28c7b879384280cf8062e6ffda (diff)
parent0b27841fd61e97388c6b645d5812e8a06be567a3 (diff)
downloadgitlab-ce-dacc96460e215e427781f8461de4e0bc68a9b8cc.tar.gz
Merge branch 'bvl-fix-graphql-autoloading' into 'master'
Eager load the GraphQL schema in specs Closes gitlab-ee#11497 See merge request gitlab-org/gitlab-ce!28246
-rw-r--r--spec/support/helpers/graphql_helpers.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/helpers/graphql_helpers.rb b/spec/support/helpers/graphql_helpers.rb
index f15944652fd..44ed9da25fc 100644
--- a/spec/support/helpers/graphql_helpers.rb
+++ b/spec/support/helpers/graphql_helpers.rb
@@ -197,3 +197,7 @@ module GraphqlHelpers
allow(GitlabSchema).to receive(:max_query_depth).with(any_args).and_return nil
end
end
+
+# This warms our schema, doing this as part of loading the helpers to avoid
+# duplicate loading error when Rails tries autoload the types.
+GitlabSchema.graphql_definition