summaryrefslogtreecommitdiff
path: root/test/integration
diff options
context:
space:
mode:
authorAya Jaff <ayajaff@hotmail.com>2015-08-12 15:18:34 +0200
committerankonym <ankonym@gmail.com>2015-09-28 15:12:44 +0200
commit9156f1354f404c569e7fd337cff0171f6f43842e (patch)
treeb32b4026dfdbdf8a2b7b8e1161d2922891bf3d24 /test/integration
parent8f03c13a038469a1191666259ef5609c89d69d90 (diff)
Added an 'invite code' to all the tests for the sign-up form so we have a valid user for the tests again
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/api/srp_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/api/srp_test.rb b/test/integration/api/srp_test.rb
index fbef47e..ea06cde 100644
--- a/test/integration/api/srp_test.rb
+++ b/test/integration/api/srp_test.rb
@@ -32,10 +32,10 @@ class SrpTest < RackTest
attr_reader :server_auth
- def register_user(login = "integration_test", password = 'srp, verify me!')
+ def register_user(login = "integration_test", password = 'srp, verify me!', invite_code = "testcode")
cleanup_user(login)
post 'http://api.lvh.me:3000/1/users.json',
- user_params(login: login, password: password)
+ user_params(login: login, password: password, invite_code: invite_code)
assert(@user = User.find_by_login(login), 'user should have been created: %s' % last_response_errors)
@login = login
@password = password