summaryrefslogtreecommitdiff
path: root/tests/helpers/bonafide_helper.rb
diff options
context:
space:
mode:
authorankonym <ankonym@gmail.com>2015-10-12 11:19:21 +0200
committerankonym <ankonym@gmail.com>2015-10-12 11:19:21 +0200
commit2053883c81d261b5a9af5011bd6f0e8bc709f8d1 (patch)
tree51fa5d88904a62f1b33117890ea7bfb6d310ccde /tests/helpers/bonafide_helper.rb
parentdc426cc777aec921772c1d8c2fa014d61aa90d33 (diff)
Fix soledad test when invite codes are enabled
This provides an invite code when invite codes are enabled while the test runs (but it does not get deleted yet afterwards)
Diffstat (limited to 'tests/helpers/bonafide_helper.rb')
-rw-r--r--tests/helpers/bonafide_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/helpers/bonafide_helper.rb b/tests/helpers/bonafide_helper.rb
index 1a6dc6fe..82db3973 100644
--- a/tests/helpers/bonafide_helper.rb
+++ b/tests/helpers/bonafide_helper.rb
@@ -36,7 +36,8 @@ class LeapTest
params = user.to_params
if property('webapp.invite_required')
- params['user[invite_code]'] = generate_invite_code
+ @invite_code = generate_invite_code
+ params['user[invite_code]'] = @invite_code
end
assert_post(url, params) do |body|