Build subjects from method matching correctly
This commit is contained in:
parent
c9d762dbe9
commit
4b47d666d7
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue