From e73e270386d6f57a7fbf1863bb53c517e325ac87 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Sun, 28 Jul 2013 20:07:57 +0200 Subject: [PATCH] Fix style in Mutant::Matcher::Method --- lib/mutant/matcher/method.rb | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/mutant/matcher/method.rb b/lib/mutant/matcher/method.rb index 596b45de..1e8195d5 100644 --- a/lib/mutant/matcher/method.rb +++ b/lib/mutant/matcher/method.rb @@ -26,7 +26,12 @@ module Mutant if subject yield subject else - $stderr.puts "Cannot find definition of: #{identification} in #{source_location.join(':')}" + message = sprinf( + 'Cannot find definition of: %s in %s', + identification, + source_location.join(':') + ) + $stderr.puts(message) end end @@ -48,7 +53,11 @@ module Mutant def skip? location = source_location if location.nil? or BLACKLIST.match(location.first) - $stderr.puts "#{method.inspect} does not have valid source location so mutant is unable to emit matcher" + message = sprintf( + '%s does not have valid source location unable to emit matcher', + method.inspect + ) + $stderr.puts(message) return true end