Skip to content

Commit

Permalink
Fix: blueprints generated invalid passwords
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
matiasgarciaisaia committed Jan 18, 2024
1 parent 4509213 commit f26e600
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/support/blueprints.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f26e600

Please sign in to comment.