diff options
author | ankonym <ankonym@gmail.com> | 2015-10-12 11:19:21 +0200 |
---|---|---|
committer | ankonym <ankonym@gmail.com> | 2015-10-12 11:19:21 +0200 |
commit | 2053883c81d261b5a9af5011bd6f0e8bc709f8d1 (patch) | |
tree | 51fa5d88904a62f1b33117890ea7bfb6d310ccde /tests/helpers | |
parent | dc426cc777aec921772c1d8c2fa014d61aa90d33 (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')
-rw-r--r-- | tests/helpers/bonafide_helper.rb | 3 |
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| |