summaryrefslogtreecommitdiff
path: root/app/services/boards
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-06-06 16:27:54 +0100
committerPhil Hughes <me@iamphill.com>2017-06-06 16:27:54 +0100
commit973e8c0fc50bc6614ca42413555a3f73625c7efa (patch)
tree61e70ee3ef7180b9ef0dbd0eddd072d0ba4ecde9 /app/services/boards
parente7b4eade0d69a70400a8d18ec72218c7b0bf1517 (diff)
downloadgitlab-ce-973e8c0fc50bc6614ca42413555a3f73625c7efa.tar.gz
updated service spec
Diffstat (limited to 'app/services/boards')
-rw-r--r--app/services/boards/lists/list_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/boards/lists/list_service.rb b/app/services/boards/lists/list_service.rb
index 4ec56c3ac4d..df2a01a69e5 100644
--- a/app/services/boards/lists/list_service.rb
+++ b/app/services/boards/lists/list_service.rb
@@ -2,7 +2,7 @@ module Boards
module Lists
class ListService < BaseService
def execute(board)
- board.lists.create(list_type: :backlog) unless board.lists.backlog.any?
+ board.lists.create(list_type: :backlog) unless board.lists.backlog.exists?
board.lists
end