class GraphQL::Testing::Helpers::ResolutionAssertionContext
Attributes
Public Class Methods
# File lib/graphql/testing/helpers.rb, line 133 def initialize(test, type_name:, object:, schema:, context:, visibility_profile:) @test = test @type_name = type_name @object = object @schema = schema @context = context @visibility_profile = visibility_profile end
Public Instance Methods
# File lib/graphql/testing/helpers.rb, line 144 def run_graphql_field(field_name, arguments: {}) if @schema @test.run_graphql_field(@schema, "#{@type_name}.#{field_name}", @object, arguments: arguments, context: @context, visibility_profile: @visibility_profile) else @test.run_graphql_field("#{@type_name}.#{field_name}", @object, arguments: arguments, context: @context, visibility_profile: @visibility_profile) end end