From 87b669b82797d2899207d085131b1196169ed670 Mon Sep 17 00:00:00 2001 From: Evandro Junior Date: Wed, 11 Nov 2015 17:06:15 -0300 Subject: [PATCH] All testing passing - BPs removed --- lib/noosfero/api/helpers.rb | 1 - lib/noosfero/api/session.rb | 1 - plugins/serpro_captcha/test/unit/serpro_captcha_verification_test.rb | 1 - test/unit/api/session_test.rb | 1 - 4 files changed, 0 insertions(+), 4 deletions(-) diff --git a/lib/noosfero/api/helpers.rb b/lib/noosfero/api/helpers.rb index 2f81dc2..24f4a60 100644 --- a/lib/noosfero/api/helpers.rb +++ b/lib/noosfero/api/helpers.rb @@ -22,7 +22,6 @@ require 'grape' end def current_tmp_user - binding.pry private_token = (params[PRIVATE_TOKEN_PARAM] || headers['Private-Token']).to_s ## Get the "captcha" session store @current_tmp_user = Noosfero::API::SessionStore.get("captcha##{private_token}") diff --git a/lib/noosfero/api/session.rb b/lib/noosfero/api/session.rb index 40457d5..02a2baf 100644 --- a/lib/noosfero/api/session.rb +++ b/lib/noosfero/api/session.rb @@ -59,7 +59,6 @@ module Noosfero #requires :password_confirmation, type: String, desc: _("Password confirmation") end post "/register" do - # binding.pry attrs = attributes_for_keys [:email, :login, :password, :password_confirmation] + environment.signup_person_fields remote_ip = (request.respond_to?(:remote_ip) && request.remote_ip) || (env && env['REMOTE_ADDR']) # test_captcha will render_api_error! and exit in case of any problem 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 60d0df0..efe4d4c 100644 --- a/plugins/serpro_captcha/test/unit/serpro_captcha_verification_test.rb +++ b/plugins/serpro_captcha/test/unit/serpro_captcha_verification_test.rb @@ -90,7 +90,6 @@ class SerproCaptchaVerificationTest < ActiveSupport::TestCase end should 'perform a vote on an article identified by id' do - binding.pry pass_captcha @environment.serpro_captcha_verify_uri, @captcha_verification_body params = {} params[:txtToken_captcha_serpro_gov_br]= @captcha_token diff --git a/test/unit/api/session_test.rb b/test/unit/api/session_test.rb index 40a7da3..86d78e8 100644 --- a/test/unit/api/session_test.rb +++ b/test/unit/api/session_test.rb @@ -83,7 +83,6 @@ class SessionTest < ActiveSupport::TestCase end should 'not register a duplicated user' do - # binding.pry params = {:login => "newuserapi", :password => "newuserapi", :password_confirmation => "newuserapi", :email => "newuserapi@email.com" } post "/api/v1/register?#{params.to_query}" post "/api/v1/register?#{params.to_query}" -- libgit2 0.21.2