class RSpec::Matchers::BuiltIn::Compound::And

Matcher used to represent a compound ‘and` expectation.
@api public

def conjunction

def conjunction
  "and"
end

def failure_message

Returns:
  • (String) -

Other tags:
    Api: - private
def failure_message
  if matcher_1_matches?
    matcher_2.failure_message
  elsif matcher_2_matches?
    matcher_1.failure_message
  else
    compound_failure_message
  end
end

def match(*)

def match(*)
  super
  matcher_1_matches? && matcher_2_matches?
end