2014-07-28 14:15:08 +03:00
|
|
|
# Read about factories at https://github.com/thoughtbot/factory_girl
|
|
|
|
|
2019-04-28 01:25:13 +03:00
|
|
|
FactoryBot.define do
|
2014-07-28 14:15:08 +03:00
|
|
|
sequence(:email) { |n| "user-#{n}@example.org" }
|
|
|
|
|
|
|
|
factory :user do
|
2019-04-28 21:10:54 +03:00
|
|
|
password { "password" }
|
|
|
|
password_confirmation { "password" }
|
2019-04-28 01:25:13 +03:00
|
|
|
confirmed_at { Time.now - 15.minutes }
|
2014-07-28 14:15:08 +03:00
|
|
|
email
|
2015-05-24 00:54:37 +03:00
|
|
|
|
|
|
|
factory :administrator do
|
2019-04-28 01:25:13 +03:00
|
|
|
admin { true }
|
2015-05-24 00:54:37 +03:00
|
|
|
end
|
2014-07-28 14:15:08 +03:00
|
|
|
end
|
|
|
|
end
|