class RSpec::Matchers::BuiltIn::Compound::And
@api public Matcher used to represent a compound ‘and` expectation.
Public Instance Methods
Source
# File lib/rspec/matchers/built_in/compound.rb, line 248 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
@api private @return [String]
Private Instance Methods
Source
# File lib/rspec/matchers/built_in/compound.rb, line 265 def conjunction "and" end
Source
# File lib/rspec/matchers/built_in/compound.rb, line 260 def match(*) super matcher_1_matches? && matcher_2_matches? end
Calls superclass method