Method: GraphQL::Testing::Helpers#with_resolution_context
- Defined in:
- lib/graphql/testing/helpers.rb
permalink #with_resolution_context(schema, type:, object:, context: {}) {|resolution_context| ... } ⇒ Object
104 105 106 107 108 109 110 111 112 113 |
# File 'lib/graphql/testing/helpers.rb', line 104 def with_resolution_context(schema, type:, object:, context:{}) resolution_context = ResolutionAssertionContext.new( self, schema: schema, type_name: type, object: object, context: context ) yield(resolution_context) end |