class RSpec::Matchers::BuiltIn::StartOrEndWith
def failure_message
-
(String)
-
Other tags:
- Api: - private
def failure_message super.tap do |msg| if @actual_does_not_have_ordered_elements msg << ", but it does not have ordered elements" elsif !actual.respond_to?(:[]) msg << ", but it cannot be indexed using #[]" end end end