Module | Spec::Example::ModuleInclusionWarnings |
In: |
vendor/plugins/rspec/lib/spec/example/module_inclusion_warnings.rb
|
In the future, modules will no longer be automatically included in the Example Group (based on the description name); when that time comes, this code should be removed.
NOTE - we don‘t need the second arg, but extenders do: www.ruby-doc.org/core/classes/Object.html#M000604
# File vendor/plugins/rspec/lib/spec/example/module_inclusion_warnings.rb, line 26 26: def respond_to?(sym, include_private_data=false) 27: MethodDispatcher.new(self.class.described_module).respond_to?(sym) ? true : super 28: end