class RSpec::Matchers::DSL::Matcher
def include(*modules)
def include(*modules) return_value = singleton_class.__send__(:include, *modules) modules.each do |mod| mod.instance_methods.each do |name| add_deprecation_warning_to(name, "Calling a helper method (`#{name}`) from a module included in a custom matcher as a macro", "`extend #{mod.name || "TheModule"}`", "included in the custom matcher", :unless ) end end return_value end