@api public Matcher used to represent a compound `and` expectation.
@api private @return [String]
# File lib/rspec/matchers/built_in/compound.rb, line 74 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
# File lib/rspec/matchers/built_in/compound.rb, line 93 def conjunction "and" end
# File lib/rspec/matchers/built_in/compound.rb, line 86 def match(expected, actual) @matcher_1_matches = matcher_1.matches?(actual) @matcher_2_matches = matcher_2.matches?(actual) @matcher_1_matches && @matcher_2_matches end