Commit 87b669b82797d2899207d085131b1196169ed670

Authored by Evandro Junior
1 parent f0ee9f49

All testing passing - BPs removed

lib/noosfero/api/helpers.rb
... ... @@ -22,7 +22,6 @@ require 'grape'
22 22 end
23 23  
24 24 def current_tmp_user
25   - binding.pry
26 25 private_token = (params[PRIVATE_TOKEN_PARAM] || headers['Private-Token']).to_s
27 26 ## Get the "captcha" session store
28 27 @current_tmp_user = Noosfero::API::SessionStore.get("captcha##{private_token}")
... ...
lib/noosfero/api/session.rb
... ... @@ -59,7 +59,6 @@ module Noosfero
59 59 #requires :password_confirmation, type: String, desc: _("Password confirmation")
60 60 end
61 61 post "/register" do
62   - # binding.pry
63 62 attrs = attributes_for_keys [:email, :login, :password, :password_confirmation] + environment.signup_person_fields
64 63 remote_ip = (request.respond_to?(:remote_ip) && request.remote_ip) || (env && env['REMOTE_ADDR'])
65 64 # test_captcha will render_api_error! and exit in case of any problem
... ...
plugins/serpro_captcha/test/unit/serpro_captcha_verification_test.rb
... ... @@ -90,7 +90,6 @@ class SerproCaptchaVerificationTest < ActiveSupport::TestCase
90 90 end
91 91  
92 92 should 'perform a vote on an article identified by id' do
93   - binding.pry
94 93 pass_captcha @environment.serpro_captcha_verify_uri, @captcha_verification_body
95 94 params = {}
96 95 params[:txtToken_captcha_serpro_gov_br]= @captcha_token
... ...
test/unit/api/session_test.rb
... ... @@ -83,7 +83,6 @@ class SessionTest < ActiveSupport::TestCase
83 83 end
84 84  
85 85 should 'not register a duplicated user' do
86   - # binding.pry
87 86 params = {:login => "newuserapi", :password => "newuserapi", :password_confirmation => "newuserapi", :email => "newuserapi@email.com" }
88 87 post "/api/v1/register?#{params.to_query}"
89 88 post "/api/v1/register?#{params.to_query}"
... ...