scinote-web/spec/factories/activities.rb
2019-09-12 17:24:08 +02:00

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