mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-06 23:15:34 +08:00
15 lines
322 B
Ruby
15 lines
322 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :protocol do
|
|
name { Faker::Name.unique.name }
|
|
team
|
|
my_module
|
|
trait :in_public_repository do
|
|
my_module { nil }
|
|
protocol_type { :in_repository_public }
|
|
added_by { create :user }
|
|
published_on { Time.now }
|
|
end
|
|
end
|
|
end
|