validates uniqueness of username 😭

This commit is contained in:
Juanjo Bazán
2015-09-04 23:15:41 +02:00
parent ded656837e
commit 3a7a8f13f5
4 changed files with 7 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ module CommonActions
visit '/'
click_link 'Sign up'
fill_in 'user_username', with: 'Manuela Carmena'
fill_in 'user_username', with: "Manuela Carmena #{rand(99999)}"
fill_in 'user_email', with: email
fill_in 'user_password', with: password
fill_in 'user_password_confirmation', with: password