From f26e600f5c1d7ebe67c47360f3182d1c2fd11174 Mon Sep 17 00:00:00 2001 From: Matias Garcia Isaia Date: Thu, 18 Jan 2024 16:03:39 -0300 Subject: [PATCH] Fix: blueprints generated invalid passwords Some times the tests would fail due to Faker generating a password that was less than 8 characters long. We now always generate 10 characters. --- spec/support/blueprints.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/support/blueprints.rb b/spec/support/blueprints.rb index 00bc093..77c2115 100644 --- a/spec/support/blueprints.rb +++ b/spec/support/blueprints.rb @@ -10,12 +10,12 @@ User.blueprint do email { Faker::Internet.email } - password { Faker::Name.name[0..10] } + password { SecureRandom.alphanumeric(10) } confirmed_at { 2.days.ago } end ExtraPassword.blueprint do - password { Faker::Name.name[0..10] } + password { SecureRandom.alphanumeric(10) } end AuthorizationCode.blueprint do