Merge remote-tracking branch 'upstream/pull/4708'
This commit is contained in:
commit
43db18ae91
2 changed files with 6 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 { PasswordHash.create("test").first }
|
||||
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