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)
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue