diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-02 00:43:01 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-17 18:58:58 +0300 |
commit | aa97c0fd12f130c4e6028a9a9361fea30bf86bca (patch) | |
tree | f682a7f855a1c72984c09f7cbbc309ea1e2f2de5 /spec/services/boards/lists | |
parent | 0fb9210dbb38cd45fc8da052317a9aaf830e1db9 (diff) |
Rename `list_id` param to `id` in Boards::Lists::DestroyService
Diffstat (limited to 'spec/services/boards/lists')
-rw-r--r-- | spec/services/boards/lists/destroy_service_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/services/boards/lists/destroy_service_spec.rb b/spec/services/boards/lists/destroy_service_spec.rb index 7c19dd36e30..620f9df739f 100644 --- a/spec/services/boards/lists/destroy_service_spec.rb +++ b/spec/services/boards/lists/destroy_service_spec.rb @@ -8,7 +8,7 @@ describe Boards::Lists::DestroyService, services: true do context 'when list type is label' do it 'removes list from board' do list = create(:list, board: board) - service = described_class.new(project, list_id: list.id) + service = described_class.new(project, id: list.id) expect { service.execute }.to change(board.lists, :count).by(-1) end @@ -20,7 +20,7 @@ describe Boards::Lists::DestroyService, services: true do staging = create(:list, board: board, position: 3) done = create(:done_list, board: board) - described_class.new(project, list_id: development.id).execute + described_class.new(project, id: development.id).execute expect(backlog.reload.position).to be_nil expect(review.reload.position).to eq 1 @@ -31,14 +31,14 @@ describe Boards::Lists::DestroyService, services: true do it 'does not remove list from board when list type is backlog' do list = create(:backlog_list, board: board) - service = described_class.new(project, list_id: list.id) + service = described_class.new(project, id: list.id) expect { service.execute }.not_to change(board.lists, :count) end it 'does not remove list from board when list type is done' do list = create(:done_list, board: board) - service = described_class.new(project, list_id: list.id) + service = described_class.new(project, id: list.id) expect { service.execute }.not_to change(board.lists, :count) end |