From a154e10478eee957cb2573e05f75d6121656f1ca Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Wed, 27 Apr 2016 18:01:04 -0300 Subject: [PATCH] fix unit test --- lib/noosfero/api/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/noosfero/api/helpers.rb b/lib/noosfero/api/helpers.rb index 9578677..605bd71 100644 --- a/lib/noosfero/api/helpers.rb +++ b/lib/noosfero/api/helpers.rb @@ -427,7 +427,7 @@ require_relative '../../find_by_contents' ########################################## def verify_captcha(remote_ip, params, environment) - captcha_plugin_enabled = @plugins.dispatch(:verify_captcha, remote_ip, params, environment).map {|p| p if ! ( p===nil ) } + captcha_plugin_enabled = plugins.dispatch(:verify_captcha, remote_ip, params, environment).map {|p| p if ! ( p===nil ) } return true if captcha_plugin_enabled.size == 0 if captcha_plugin_enabled.size > 1 return render_api_error!(_("Error processing Captcha"), 500, nil, "More than one captcha plugin enabled") -- libgit2 0.21.2