Add comment color

This commit is contained in:
Michael Miller 2019-02-17 21:30:41 -07:00
parent a015f30769
commit 1a998b6cb6

View file

@ -17,6 +17,9 @@ module Spectator::Formatters
# Symbol in `Colorize` representing pending or skipped.
PENDING_COLOR = :yellow
# Symbol in `Colorize` representing a comment in output.
COMMENT_COLOR = :cyan
# Colorizes some text with the success color.
def success(text)
text.colorize(SUCCESS_COLOR)
@ -36,5 +39,10 @@ module Spectator::Formatters
def pending(text)
text.colorize(PENDING_COLOR)
end
# Colorizes some text with the comment color.
def comment(text)
text.colorize(COMMENT_COLOR)
end
end
end