From 4b47d666d778a23f727187799592bfbf89def0a8 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Mon, 14 Jan 2013 12:54:31 +0100 Subject: [PATCH] Build subjects from method matching correctly --- lib/mutant/matcher/method.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/mutant/matcher/method.rb b/lib/mutant/matcher/method.rb index 582cf79d..f3a92155 100644 --- a/lib/mutant/matcher/method.rb +++ b/lib/mutant/matcher/method.rb @@ -80,8 +80,6 @@ module Mutant # def initialize(scope, method) @scope, @method = scope, method - # FIXME: cache public private should not be needed, loader should not override visibility! (But does currently) :( - public? end # Test if method is skipped @@ -167,7 +165,7 @@ module Mutant def subject node = matched_node return unless node - self.cass::SUBJECT_CLASS.new(context, self) + self.class::SUBJECT_CLASS.new(context, node) end memoize :subject