diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-05 20:13:43 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-11 17:39:04 +0300 |
commit | 1a4b1e9735c8b3502d54f1e9ecbce0c3f235f5c7 (patch) | |
tree | f360666194e22d81313de853c40b58fb9169064e /spec/services | |
parent | af87cf7c6ee1778b283ed285cdd7edbaaffc5fa5 (diff) |
Update Boards::Lists::MoveService to move lists inside a specific board
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/boards/lists/move_service_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/services/boards/lists/move_service_spec.rb b/spec/services/boards/lists/move_service_spec.rb index 102ed67449d..63fa0bb8c5f 100644 --- a/spec/services/boards/lists/move_service_spec.rb +++ b/spec/services/boards/lists/move_service_spec.rb @@ -2,16 +2,16 @@ require 'spec_helper' describe Boards::Lists::MoveService, services: true do describe '#execute' do - let(:project) { create(:project_with_board) } - let(:board) { project.board } + let(:project) { create(:empty_project) } + let(:board) { create(:board, project: project) } let(:user) { create(:user) } - let!(:backlog) { project.board.backlog_list } + let!(:backlog) { create(:backlog_list, board: board) } let!(:planning) { create(:list, board: board, position: 0) } let!(:development) { create(:list, board: board, position: 1) } let!(:review) { create(:list, board: board, position: 2) } let!(:staging) { create(:list, board: board, position: 3) } - let!(:done) { project.board.done_list } + let!(:done) { create(:done_list, board: board) } context 'when list type is set to label' do it 'keeps position of lists when new position is nil' do |