diff options
Diffstat (limited to 'spec/support/helpers/graphql_helpers.rb')
-rw-r--r-- | spec/support/helpers/graphql_helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/helpers/graphql_helpers.rb b/spec/support/helpers/graphql_helpers.rb index a1b4e6eee92..9b6505cc649 100644 --- a/spec/support/helpers/graphql_helpers.rb +++ b/spec/support/helpers/graphql_helpers.rb @@ -126,7 +126,7 @@ module GraphqlHelpers schema: GitlabSchema, query: GraphQL::Query.new(GitlabSchema), parent: nil) - field = described_class.fields[name] + field = described_class.fields[::GraphqlHelpers.fieldnamerize(name)] instance = described_class.authorized_new(object, context) field.resolve_field(instance, {}, context) end |