mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 17:51:39 -05:00
26 lines
493 B
Ruby
26 lines
493 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :user do
|
|
sequence :email do |n|
|
|
"user#{n}@example.com"
|
|
end
|
|
|
|
password { SecureRandom.hex(8) }
|
|
|
|
settings do
|
|
{
|
|
route_opacity: '0.5',
|
|
meters_between_routes: '100',
|
|
minutes_between_routes: '100',
|
|
fog_of_war_meters: '100',
|
|
time_threshold_minutes: '100',
|
|
merge_threshold_minutes: '100'
|
|
}
|
|
end
|
|
|
|
trait :admin do
|
|
admin { true }
|
|
end
|
|
end
|
|
end
|