scinote-web/spec/factories/activities.rb

17 lines
318 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 }
2019-09-12 23:21:48 +08:00
message { Faker::Lorem.sentence(word_count: 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