method

respond_to

rspec latest stable - Class: Spec::Matchers
respond_to(*names)
public

Matches if the target object responds to all of the names provided. Names can be Strings or Symbols.

Examples