module Test::Drive::Formatter

Constants

COLORS

Public Instance Methods

print_result(result) click to toggle source
rainbowize(string) click to toggle source
# File lib/test/drive/formatter.rb, line 28
def rainbowize(string)
  rainbow_string = ''
  string.length.times { |i| rainbow_string << Rainbow(string[i]).color(COLORS[i % COLORS.length]) }
  rainbow_string
end