From bdb1d86ea48db5bc178ea654e6177c150b091adf Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Sun, 15 Jun 2014 19:16:57 +0000 Subject: [PATCH] Simply blacklist pattern building in matcher --- lib/mutant/matcher/method.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/mutant/matcher/method.rb b/lib/mutant/matcher/method.rb index d5fdf6bd..adbe290a 100644 --- a/lib/mutant/matcher/method.rb +++ b/lib/mutant/matcher/method.rb @@ -6,9 +6,8 @@ module Mutant include Equalizer.new(:identification) # Methods within rbx kernel directory are precompiled and their source - # cannot be accessed via reading source location - SKIP_METHODS = %w[kernel/ (eval)].freeze - BLACKLIST = /\A#{Regexp.union(*SKIP_METHODS)}/.freeze + # cannot be accessed via reading source location. Same for methods created by eval. + BLACKLIST = %r{\Akernel/|(eval)}.freeze # Enumerate matches #