clarion/spec/factories/users.rb

18 lines
375 B
Ruby
Raw Normal View History

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
factory :administrator do
2019-04-28 01:25:13 +03:00
admin { true }
2024-10-01 14:59:48 +03:00
owner { true }
end
2014-07-28 14:15:08 +03:00
end
end