summaryrefslogtreecommitdiff
path: root/spec/models/board_spec.rb
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-07-28 19:26:16 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-08-17 12:58:57 -0300
commitb07c5f23b8761ae87d29ded1a69b14ae6393443a (patch)
treeec6d9812ae818c282480ef930c971462a203560f /spec/models/board_spec.rb
parent35420cec0bf511af662e09cbd8664720c58fa187 (diff)
downloadgitlab-ce-b07c5f23b8761ae87d29ded1a69b14ae6393443a.tar.gz
Order board lists by list_type, and position
Diffstat (limited to 'spec/models/board_spec.rb')
-rw-r--r--spec/models/board_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/board_spec.rb b/spec/models/board_spec.rb
index 1f32a84c340..23a91619a27 100644
--- a/spec/models/board_spec.rb
+++ b/spec/models/board_spec.rb
@@ -3,7 +3,7 @@ require 'rails_helper'
describe Board do
describe 'relationships' do
it { is_expected.to belong_to(:project) }
- it { is_expected.to have_many(:lists).dependent(:destroy) }
+ it { is_expected.to have_many(:lists).order(list_type: :asc, position: :asc).dependent(:destroy) }
end
describe 'validations' do