Commit 26873359228d1e033c069021032757ca13e6b6b3
1 parent
fdb1397c
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Test for api captcha
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
test/unit/api/session_test.rb
1 | 1 | require File.dirname(__FILE__) + '/test_helper' |
2 | +require "#{Rails.root}/lib/noosfero/api/helpers.rb" | |
3 | +include Noosfero::API::APIHelpers | |
2 | 4 | |
3 | 5 | class SessionTest < ActiveSupport::TestCase |
4 | 6 | |
5 | 7 | def setup |
6 | 8 | login_api |
9 | + Noosfero::API::APIHelpers.stubs(:verify_recaptcha_v1).returns(true) | |
7 | 10 | end |
8 | 11 | |
9 | 12 | should 'generate private token when login' do | ... | ... |