Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-07-29 01:26:16 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-08-17 18:58:57 +0300
commitb07c5f23b8761ae87d29ded1a69b14ae6393443a (patch)
treeec6d9812ae818c282480ef930c971462a203560f /spec/factories/lists.rb
parent35420cec0bf511af662e09cbd8664720c58fa187 (diff)
Order board lists by list_type, and position
Diffstat (limited to 'spec/factories/lists.rb')
-rw-r--r--spec/factories/lists.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/factories/lists.rb b/spec/factories/lists.rb
index bef161d2a7e..7b41361500c 100644
--- a/spec/factories/lists.rb
+++ b/spec/factories/lists.rb
@@ -2,18 +2,22 @@ FactoryGirl.define do
factory :list do
board
label
- sequence(:position)
end
factory :backlog_list, parent: :list do
list_type :backlog
+ label nil
+ position nil
end
factory :label_list, parent: :list do
list_type :label
+ sequence(:position)
end
factory :done_list, parent: :list do
list_type :done
+ label nil
+ position nil
end
end