mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
13 lines
249 B
Ruby
13 lines
249 B
Ruby
|
FactoryGirl.define do
|
||
|
factory :group do
|
||
|
sequence(:id) { |n| n + 100 } # Preserve first 100
|
||
|
sequence(:name) { |n| "Group#{n}" }
|
||
|
association :founder, factory: :user
|
||
|
end
|
||
|
|
||
|
trait :admin do
|
||
|
name "Admins"
|
||
|
id Group::ADMINS
|
||
|
end
|
||
|
end
|