module RSpec::Matchers::DSL::DefaultImplementations
def chained_method_clause_sentences
def chained_method_clause_sentences return '' unless Expectations.configuration.include_chain_clauses_in_custom_matcher_descriptions? @chained_method_clauses.map do |(method_name, method_args)| english_name = EnglishPhrasing.split_words(method_name) arg_list = EnglishPhrasing.list(method_args) " #{english_name}#{arg_list}" end.join end
def description
def description english_name = EnglishPhrasing.split_words(name) expected_list = EnglishPhrasing.list(expected) "#{english_name}#{expected_list}#{chained_method_clause_sentences}" end
def diffable?
- Api: - private
def diffable? false end
def expects_call_stack_jump?
def expects_call_stack_jump? false end
def supports_block_expectations?
Matchers do not support block expectations by default. You
def supports_block_expectations? false end
def supports_value_expectations?
def supports_value_expectations? true end