Sha256: 17211a9d19d300991296fc2b21e5cced768831f5ae34301af97fbd996ae06dbe
Contents?: true
Size: 623 Bytes
Versions: 17
Compression:
Stored size: 623 Bytes
Contents
module ::RSpec::Matchers::BuiltIn class StartAndEndWith def failure_message msg = super 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 msg # string mutation # 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 end end
Version data entries
17 entries across 17 versions & 1 rubygems