X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c6bb4a5f4eadc46bac599cd6a5174b199c1b6026..d2688d4d632c32458e6efa053cf4f2b98ff188dc:/test/factories/user.rb?ds=inline diff --git a/test/factories/user.rb b/test/factories/user.rb index 166461637..5b92345c2 100644 --- a/test/factories/user.rb +++ b/test/factories/user.rb @@ -2,7 +2,7 @@ FactoryBot.define do factory :user do sequence(:email) { |n| "user#{n}@example.com" } sequence(:display_name) { |n| "User #{n}" } - pass_crypt { Digest::MD5.hexdigest("test") } + pass_crypt { PasswordHash.create("test").first } # These attributes are not the defaults, but in most tests we want # a 'normal' user who can log in without being redirected etc.