Fix style in Mutant::Matcher::Method::Singleton
This commit is contained in:
parent
e73e270386
commit
6bdbdb719e
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue