diff --git a/spec/graphql/schema/introspection_system_spec.rb b/spec/graphql/schema/introspection_system_spec.rb index f232643594..342be2beb3 100644 --- a/spec/graphql/schema/introspection_system_spec.rb +++ b/spec/graphql/schema/introspection_system_spec.rb @@ -247,10 +247,10 @@ class HidingIntrospectionSchema < GraphQL::Schema module HideIntrospectionByContext def visible?(ctx) super && if introspection? - !ctx[:hide_introspection] + !ctx[:hide_introspection] else true - end + end end end