boards.rb 147 Bytes
FactoryBot.define do
  factory :board do
    project

    after(:create) do |board|
      board.lists.create(list_type: :closed)
    end
  end
end