summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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|