clarion/spec/factories/users.rb
2019-04-28 01:25:13 +03:00

17 lines
354 B
Ruby

# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryBot.define do
sequence(:email) { |n| "user-#{n}@example.org" }
factory :user do
password { 'password' }
password_confirmation { 'password' }
confirmed_at { Time.now - 15.minutes }
email
factory :administrator do
admin { true }
end
end
end