From b66a883b75774de314557484359480f0520e12fc Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Wed, 3 Jul 2013 00:32:48 +0200 Subject: [PATCH] Add a warning about method subjects that could not be source-located! --- lib/mutant/matcher/method.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/mutant/matcher/method.rb b/lib/mutant/matcher/method.rb index b4e288bd..25305918 100644 --- a/lib/mutant/matcher/method.rb +++ b/lib/mutant/matcher/method.rb @@ -22,7 +22,11 @@ module Mutant return to_enum unless block_given? unless skip? - yield subject if subject + if subject + yield subject + else + $stderr.puts "Cannot find definition of: #{identification} in #{source_location.join(':')}" + end end self