Sha256: ddb4c25dd60d9759d64602cdd03905cb060130b22210d7cf9b7df174e23e6b82
Contents?: true
Size: 429 Bytes
Versions: 4
Compression:
Stored size: 429 Bytes
Contents
module DeepTest module FailureMessage def self.show(title, message, width = 70) lines = [" #{title} ".center(width, '*')] message.each do |line| lines << "* #{line.strip}".ljust(width - 1) + "*" end lines << "*" * width string = lines.join("\n") begin puts string rescue IO.new(2) do |err| err.puts string end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems