class RuboCop::Cop::Minitest::RefuteRespondTo


refute_respond_to(self, :do_something)
refute_respond_to(object, :do_something, ‘message’)
refute_respond_to(object, :do_something)
# good
refute(respond_to?(:do_something))
refute(object.respond_to?(:do_something), ‘message’)
refute(object.respond_to?(:do_something))
# bad
@example
over ‘refute(object.respond_to?(:do_something))`.
Enforces the test to use `refute_respond_to(object, :do_something)`