avoid password equal to username in specs

pull/14526/head
Alberto Romeu 6 years ago
parent 802249ef31
commit 1ad919e077

@ -47,7 +47,7 @@ module CartoDB
user = user_class.new
user.username = attributes[:username] || unique_name('user')
user.email = attributes[:email] || unique_email
user.password = attributes[:password] || user.email.split('@').first
user.password = "#{(attributes[:password] || user.email.split('@').first)}000"
user.password_confirmation = user.password
user.admin = attributes[:admin] == false ? false : true
user.private_tables_enabled = attributes[:private_tables_enabled] == true ? true : false

Loading…
Cancel
Save