Build subjects from method matching correctly

This commit is contained in:
Markus Schirp 2013-01-14 12:54:31 +01:00
parent c9d762dbe9
commit 4b47d666d7

View file

@ -80,8 +80,6 @@ module Mutant
# #
def initialize(scope, method) def initialize(scope, method)
@scope, @method = scope, method @scope, @method = scope, method
# FIXME: cache public private should not be needed, loader should not override visibility! (But does currently) :(
public?
end end
# Test if method is skipped # Test if method is skipped
@ -167,7 +165,7 @@ module Mutant
def subject def subject
node = matched_node node = matched_node
return unless node return unless node
self.cass::SUBJECT_CLASS.new(context, self) self.class::SUBJECT_CLASS.new(context, node)
end end
memoize :subject memoize :subject