Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
rmosolgo committed Dec 15, 2023
1 parent e99927e commit ff306d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/graphql/testing/assertions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def assert_resolves_type_to(schema, expected_type, value, context: {}, message:
def assert_resolves_field_to(schema, expected_value, type, field, object, arguments: {}, context: {}, message: nil)
dummy_query = GraphQL::Query.new(schema, context: context)
type_name = type.is_a?(String) ? type : type.graphql_name
visible_object_type = dummy_query.get_type(type_name)
visible_object_type = dummy_query.get_type(type_name) # rubocop:disable Development/ContextIsPassedCop
if visible_object_type
field_name = field.is_a?(String) ? field : field.graphql_name
visible_field = dummy_query.get_field(visible_object_type, field_name)
Expand Down

0 comments on commit ff306d4

Please # to comment.