lib/mutant/expression/method.rb in mutant-0.5.22 vs lib/mutant/expression/method.rb in mutant-0.5.23
- old
+ new
@@ -22,10 +22,10 @@
# @api private
#
def matcher(cache)
methods_matcher = MATCHERS.fetch(scope_symbol).new(cache, scope)
method = methods_matcher.methods.detect do |meth|
- meth.name == method_name
+ meth.name.equal?(method_name)
end or raise NameError, "Cannot find method #{identifier}"
methods_matcher.matcher.build(cache, scope, method)
end
private