Skip to content

Commit

Permalink
Fix [email protected] keyword warning (refs testdouble#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
aki77 committed Oct 12, 2021
1 parent a227d78 commit 85a5afe
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/rspec/graphql_response/helpers/execute_graphql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@

operation_vars = graphql_variables if respond_to? :graphql_variables
operation_vars = self.instance_eval(&graphql_variables) if operation_vars.is_a? Proc

operation_context = graphql_context if respond_to? :graphql_context
operation_context = self.instance_eval(&operation_context) if operation_context.is_a? Proc

config.graphql_schema.execute(operation, {
variables: operation_vars,
context: operation_context
})
config.graphql_schema.execute(operation, variables: operation_vars, context: operation_context)
end

0 comments on commit 85a5afe

Please sign in to comment.