summaryrefslogtreecommitdiff
path: root/users/test/support/integration_test_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'users/test/support/integration_test_helper.rb')
-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