scinote-web/spec/factories/repository_checklist_items.rb

15 lines
349 B
Ruby
Raw Normal View History

2019-12-06 20:18:35 +08:00
# frozen_string_literal: true
FactoryBot.define do
2019-12-09 20:38:40 +08:00
factory :repository_checklist_item do
2019-12-06 20:18:35 +08:00
data { Faker::Lorem.paragraph }
2020-04-09 23:11:58 +08:00
repository_column { create :repository_column, :checklist_type }
2019-12-06 20:18:35 +08:00
created_by { create :user }
last_modified_by { created_by }
after(:create) do |item|
item.repository_column.reload
end
2019-12-06 20:18:35 +08:00
end
end