Defines default implementations of the matcher protocol methods for custom matchers. You can override any of these using the {RSpec::Matchers::DSL::Macros Macros} methods from within an `RSpec::Matchers.define` block.
The default description.
# File lib/rspec/matchers/dsl.rb, line 385 def description english_name = EnglishPhrasing.split_words(name) expected_list = EnglishPhrasing.list(expected) "#{english_name}#{expected_list}#{chained_method_clause_sentences}" end
@api private Used internally by objects returns by `should` and `should_not`.
# File lib/rspec/matchers/dsl.rb, line 380 def diffable? false end
Most matchers do not expect call stack jumps.
# File lib/rspec/matchers/dsl.rb, line 398 def expects_call_stack_jump? false end
Matchers do not support block expectations by default. You must opt-in.
# File lib/rspec/matchers/dsl.rb, line 393 def supports_block_expectations? false end