Commit 534fff215977ca07199a2f18a8ac25f3765989f1

Authored by Evandro Junior
1 parent 61c44cf5

Swaping value for its variable

plugins/serpro_captcha/test/unit/serpro_captcha_verification_test.rb
... ... @@ -35,13 +35,13 @@ class SerproCaptchaVerificationTest < ActiveSupport::TestCase
35 35 post "/api/v1/register?#{params.to_query}"
36 36 assert_equal 403, last_response.status
37 37 json = JSON.parse(last_response.body)
38   - assert_equal json["message"], _("Wrong captcha text, please try again")
  38 + assert_equal json["message"], _("Wrong captcha text, please try again")
39 39 end
40 40  
41 41 should 'verify_serpro_captcha' do
42 42 pass_captcha @environment.serpro_captcha_verify_uri, @captcha_verification_body
43 43 scv = SerproCaptchaVerification.new
44   - assert scv.verify_serpro_captcha(@environment.serpro_captcha_client_id, @captcha_token, '44641441', @environment.serpro_captcha_verify_uri)
  44 + assert scv.verify_serpro_captcha(@environment.serpro_captcha_client_id, @captcha_token, @captcha_text, @environment.serpro_captcha_verify_uri)
45 45 end
46 46  
47 47 should 'fail captcha if user has not filled Serpro\' captcha text' do
... ...