class RSpec::Matchers::BuiltIn::Compound::Or

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

Public Instance Methods

failure_message() click to toggle source

@api private @return [String]

# File lib/rspec/matchers/built_in/compound.rb, line 104
def failure_message
  compound_failure_message
end

Private Instance Methods

conjunction() click to toggle source
# File lib/rspec/matchers/built_in/compound.rb, line 114
def conjunction
  "or"
end
match(expected, actual) click to toggle source
# File lib/rspec/matchers/built_in/compound.rb, line 110
def match(expected, actual)
  matcher_1.matches?(actual) || matcher_2.matches?(actual)
end