diff options
author | Nick Thomas <nick@gitlab.com> | 2019-05-13 12:40:46 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-05-13 12:40:46 +0300 |
commit | dacc96460e215e427781f8461de4e0bc68a9b8cc (patch) | |
tree | 299f449c107cf9434693e4a164978fc3323bce05 | |
parent | d5fb60c52b79fa28c7b879384280cf8062e6ffda (diff) | |
parent | 0b27841fd61e97388c6b645d5812e8a06be567a3 (diff) |
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.rb | 4 |
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 |