Progress bar uses darker red and green.

This brings it in line with the red and green used in other
testing suites. It has the additional advantage of being
more useful to people with at least my particular brand
of color deficiency, which made it difficult to distinguish
the lighter red and green previously used.
This commit is contained in:
Chris Cahoon 2010-07-08 10:49:21 -04:00
parent 2b387cabb2
commit 33ed55b432
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ module Hydra #:nodoc:
complete = ((@files_completed.to_f / @total_files.to_f) * width).to_i
@output.write "\r" # move to beginning
@output.write 'Hydra Testing ['
@output.write @errors ? "\033[1;31m" : "\033[1;32m"
@output.write @errors ? "\033[0;31m" : "\033[0;32m"
complete.times{@output.write '#'}
@output.write '>'
(width-complete).times{@output.write ' '}