calculate hash once per test run, per thread
This commit is contained in:
parent
4cac6b0354
commit
130a2ed7c1
1 changed files with 3 additions and 1 deletions
|
@ -1,8 +1,10 @@
|
|||
pass_crypt = PasswordHash.create("test").first
|
||||
|
||||
FactoryBot.define do
|
||||
factory :user do
|
||||
sequence(:email) { |n| "user#{n}@example.com" }
|
||||
sequence(:display_name) { |n| "User #{n}" }
|
||||
pass_crypt { "$argon2id$v=19$m=65536,t=3,p=4$M+oP6KQOdFLDeiYa/gbzAg$pULNwXgKt2sEmTxMXxt298skEqc8MjnPwGsk075jLrk" }
|
||||
pass_crypt { pass_crypt }
|
||||
|
||||
# These attributes are not the defaults, but in most tests we want
|
||||
# a 'normal' user who can log in without being redirected etc.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue