diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-07-28 01:54:13 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-17 12:58:57 -0300 |
commit | 5ef567e33df9f4562f56fdbf60329c027dbfa913 (patch) | |
tree | 2552e17a84c831f1369966a75ae5af28b004029e /spec/factories | |
parent | 4180a15c568a16371e14a869166827a7998e993b (diff) | |
download | gitlab-ce-5ef567e33df9f4562f56fdbf60329c027dbfa913.tar.gz |
Does not allow Backlog/Done lists to be removed
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/lists.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/factories/lists.rb b/spec/factories/lists.rb index 4e493da41a0..bef161d2a7e 100644 --- a/spec/factories/lists.rb +++ b/spec/factories/lists.rb @@ -4,4 +4,16 @@ FactoryGirl.define do label sequence(:position) end + + factory :backlog_list, parent: :list do + list_type :backlog + end + + factory :label_list, parent: :list do + list_type :label + end + + factory :done_list, parent: :list do + list_type :done + end end |