Merge pull request #9 from postmodern/print_killer_fix
Use %s to avoid embedding Strings which may contain '%' characters.
This commit is contained in:
commit
1ab050a19c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue