1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/factories/accounts.rb
2019-08-12 00:28:17 +05:00

20 lines
466 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :guest_account, class: Account do
public_name { Faker::Name.name }
biography { Faker::Lorem.paragraph }
end
factory :usual_account, parent: :guest_account do
association :user
end
factory :personal_account, parent: :usual_account do
association :person, factory: :initial_person
end
factory :superuser_account, parent: :personal_account do
superuser { true }
end
end