Update method not found to raise a NameError

This commit is contained in:
Dan Kubb 2013-07-29 15:55:52 -07:00
parent 85aabae109
commit f3061f77c8

View file

@ -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