Rename `list_id` param to `id` in Boards::Issues::ListService

parent 64d75595
...@@ -10,7 +10,7 @@ module Boards ...@@ -10,7 +10,7 @@ module Boards
private private
def list def list
@list ||= board.lists.find(params[:list_id]) @list ||= board.lists.find(params[:id])
end end
def filter_params def filter_params
......
...@@ -37,7 +37,7 @@ describe Boards::Issues::ListService, services: true do ...@@ -37,7 +37,7 @@ describe Boards::Issues::ListService, services: true do
end end
it 'delegates search to IssuesFinder' do it 'delegates search to IssuesFinder' do
params = { list_id: list1.id } params = { id: list1.id }
expect_any_instance_of(IssuesFinder).to receive(:execute).once expect_any_instance_of(IssuesFinder).to receive(:execute).once
...@@ -46,7 +46,7 @@ describe Boards::Issues::ListService, services: true do ...@@ -46,7 +46,7 @@ describe Boards::Issues::ListService, services: true do
context 'sets default order to priority' do context 'sets default order to priority' do
it 'returns opened issues when listing issues from Backlog' do it 'returns opened issues when listing issues from Backlog' do
params = { list_id: backlog.id } params = { id: backlog.id }
issues = described_class.new(project, user, params).execute issues = described_class.new(project, user, params).execute
...@@ -54,7 +54,7 @@ describe Boards::Issues::ListService, services: true do ...@@ -54,7 +54,7 @@ describe Boards::Issues::ListService, services: true do
end end
it 'returns closed issues when listing issues from Done' do it 'returns closed issues when listing issues from Done' do
params = { list_id: done.id } params = { id: done.id }
issues = described_class.new(project, user, params).execute issues = described_class.new(project, user, params).execute
...@@ -62,7 +62,7 @@ describe Boards::Issues::ListService, services: true do ...@@ -62,7 +62,7 @@ describe Boards::Issues::ListService, services: true do
end end
it 'returns opened issues that have label list applied when listing issues from a label list' do it 'returns opened issues that have label list applied when listing issues from a label list' do
params = { list_id: list1.id } params = { id: list1.id }
issues = described_class.new(project, user, params).execute issues = described_class.new(project, user, params).execute
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment