summaryrefslogtreecommitdiff
path: root/users/test/support
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-11-06 10:20:33 +0100
committerAzul <azul@leap.se>2013-11-06 10:20:33 +0100
commit44d273fd03645af5e546133adf4e9906800d3d5f (patch)
treea78c5b4f45069cc6b1bd1478b59fe2bf3f0ab34e /users/test/support
parent40f24e2887672957acf7ecedce58e692cc9505ca (diff)
integration test for blocking handles after account destroyed
has not been run yet.
Diffstat (limited to 'users/test/support')
-rw-r--r--users/test/support/integration_test_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/users/test/support/integration_test_helper.rb b/users/test/support/integration_test_helper.rb
index cfe72cf..51e47c6 100644
--- a/users/test/support/integration_test_helper.rb
+++ b/users/test/support/integration_test_helper.rb
@@ -1,7 +1,7 @@
module IntegrationTestHelper
- def submit_signup
- username = "test_#{SecureRandom.urlsafe_base64}".downcase
- password = SecureRandom.base64
+ def submit_signup(username = nil, password = nil)
+ username ||= "test_#{SecureRandom.urlsafe_base64}".downcase
+ password ||= SecureRandom.base64
visit '/users/new'
fill_in 'Username', with: username
fill_in 'Password', with: password