mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 09:42:46 +08:00
15 lines
327 B
Ruby
15 lines
327 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :repository do
|
|
sequence(:name) { |n| "My repository-#{n}" }
|
|
created_by { create :user }
|
|
team
|
|
trait :write_shared do
|
|
permission_level { :shared_write }
|
|
end
|
|
trait :read_shared do
|
|
permission_level { :shared_read }
|
|
end
|
|
end
|
|
end
|