scinote-web/spec/factories/activities.rb

17 lines
298 B
Ruby
Raw Normal View History

2019-02-20 19:04:01 +08:00
# frozen_string_literal: true
FactoryBot.define do
2017-12-14 21:02:40 +08:00
factory :activity do
type_of :create_project
message Faker::Lorem.sentence(10)
2019-02-20 19:04:01 +08:00
subject { create :project }
2019-02-25 22:21:13 +08:00
owner { create :user }
team
trait :old do
project
experiment
subject { nil }
end
2017-12-14 21:02:40 +08:00
end
end