Fix style in Mutant::Matcher::Method::Singleton

This commit is contained in:
Markus Schirp 2013-07-28 20:11:21 +02:00
parent e73e270386
commit 6bdbdb719e

View file

@ -92,7 +92,11 @@ module Mutant
when :const
receiver_name?(receiver)
else
$stderr.puts "Can only match self or const, got #{receiver.type}, unable to match receiver of defs node"
message = sprintf(
'Can only match :defs on :self or :const got %s unable to match',
receiver.type.inspect
)
$stderr.puts(message)
false
end
end