From c702c030f4923b02c0aefb82c75c1c310ffb347b Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Mon, 7 Jul 2014 20:04:03 +0000 Subject: [PATCH] Correct exception message --- lib/mutant/expression/method.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mutant/expression/method.rb b/lib/mutant/expression/method.rb index 90fb92ee..3d92bc2d 100644 --- a/lib/mutant/expression/method.rb +++ b/lib/mutant/expression/method.rb @@ -25,7 +25,7 @@ module Mutant methods_matcher = MATCHERS.fetch(scope_symbol).new(env, scope) method = methods_matcher.methods.detect do |meth| meth.name.equal?(method_name) - end or raise NameError, "Cannot find method #{identifier}" + end or raise NameError, "Cannot find method #{method_name}" methods_matcher.matcher.build(env, scope, method) end