# File lib/rspec/core/formatters/base_text_formatter.rb, line 24 def colorise_summary(summary) if failure_count == 0 if pending_count > 0 yellow(summary) else green(summary) end else red(summary) end end