mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 09:42:46 +08:00
16 lines
318 B
Ruby
16 lines
318 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :activity do
|
|
type_of { :create_project }
|
|
message { Faker::Lorem.sentence(word_count: 10) }
|
|
subject { create :project }
|
|
owner { create :user }
|
|
team
|
|
trait :old do
|
|
project
|
|
experiment
|
|
subject { nil }
|
|
end
|
|
end
|
|
end
|