summaryrefslogtreecommitdiff
path: root/spec/factories/boards.rb
blob: ec46146d9b5f1942beefa9456f957438559a81c0 (plain)
1
2
3
4
5
6
7
8
9
10
FactoryGirl.define do
  factory :board do
    project factory: :empty_project

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