Update method not found to raise a NameError
This commit is contained in:
parent
85aabae109
commit
f3061f77c8
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ module Mutant
|
|||
def method
|
||||
methods_matcher.methods.detect do |method|
|
||||
method.name == method_name
|
||||
end or raise "Cannot find method #{identifier}"
|
||||
end or raise NameError, "Cannot find method #{identifier}"
|
||||
end
|
||||
memoize :method, :freezer => :noop
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue