From bbda303a83cdaa8fb9cbfd8b9d69cf735ec26be0 Mon Sep 17 00:00:00 2001 From: Postmodern Date: Sun, 20 Jan 2013 22:30:49 -0800 Subject: [PATCH] Use %s to avoid embedding Strings which may contain '%' characters. --- lib/mutant/reporter/cli.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mutant/reporter/cli.rb b/lib/mutant/reporter/cli.rb index 0a7b3f8c..b024aa07 100644 --- a/lib/mutant/reporter/cli.rb +++ b/lib/mutant/reporter/cli.rb @@ -270,7 +270,7 @@ module Mutant # @api private # def print_killer(color, word, killer) - puts(colorize(color, "#{word}: #{killer.identification} (%02.2fs)" % killer.runtime)) + puts(colorize(color, "%s: %s (%02.2fs)" % [word, killer.identification, killer.runtime])) end # Test for output to tty