class RuboCop::Cop::Minitest::AssertRespondTo


assert_respond_to(self, :do_something)
assert_respond_to(object, :do_something, ‘message’)
assert_respond_to(object, :do_something)
# good
assert(respond_to?(:do_something))
assert(object.respond_to?(:do_something), ‘message’)
assert(object.respond_to?(:do_something))
# bad
@example
over ‘assert(object.respond_to?(:do_something))`.
Enforces the use of `assert_respond_to(object, :do_something)`