mastodon/spec/fabricators/user_fabricator.rb

8 lines
275 B
Ruby

Fabricator(:user) do
account { Fabricate.build(:account, user: nil) }
email { sequence(:email) { |i| "#{i}#{Faker::Internet.email}" } }
password "123456789"
confirmed_at { Time.zone.now }
current_sign_in_at { Time.zone.now }
agreement true
end