From 534fff215977ca07199a2f18a8ac25f3765989f1 Mon Sep 17 00:00:00 2001 From: Evandro Junior Date: Tue, 3 Nov 2015 18:27:27 -0300 Subject: [PATCH] Swaping value for its variable --- plugins/serpro_captcha/test/unit/serpro_captcha_verification_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/serpro_captcha/test/unit/serpro_captcha_verification_test.rb b/plugins/serpro_captcha/test/unit/serpro_captcha_verification_test.rb index aec88f3..69e0f96 100644 --- a/plugins/serpro_captcha/test/unit/serpro_captcha_verification_test.rb +++ b/plugins/serpro_captcha/test/unit/serpro_captcha_verification_test.rb @@ -35,13 +35,13 @@ class SerproCaptchaVerificationTest < ActiveSupport::TestCase post "/api/v1/register?#{params.to_query}" assert_equal 403, last_response.status json = JSON.parse(last_response.body) - assert_equal json["message"], _("Wrong captcha text, please try again") + assert_equal json["message"], _("Wrong captcha text, please try again") end should 'verify_serpro_captcha' do pass_captcha @environment.serpro_captcha_verify_uri, @captcha_verification_body scv = SerproCaptchaVerification.new - assert scv.verify_serpro_captcha(@environment.serpro_captcha_client_id, @captcha_token, '44641441', @environment.serpro_captcha_verify_uri) + assert scv.verify_serpro_captcha(@environment.serpro_captcha_client_id, @captcha_token, @captcha_text, @environment.serpro_captcha_verify_uri) end should 'fail captcha if user has not filled Serpro\' captcha text' do -- libgit2 0.21.2