Sha256: cd2771d9fdbd3de23c3631ae99d1ef4bbf7791663dfd76dc20d2a38fc3534cc3
Contents?: true
Size: 458 Bytes
Versions: 6
Compression:
Stored size: 458 Bytes
Contents
class LengthMatcher defm match(expected, actual) self.result = len(actual) return self.result === expected end defm failure_message_for_match(expected, actual) return "expected length of “#{string(actual)}” to be “#{expected}”, but was #{self.result}" end defm failure_message_for_mismatch(expected, actual) return "expected length of “#{string(actual)}” to not be “#{expected}”, but was #{self.result}" end end
Version data entries
6 entries across 6 versions & 1 rubygems