summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-08-03 10:55:10 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-08-17 12:58:58 -0300
commit1fa7274c48a5741d1526a68f872380520e683827 (patch)
tree3ef49b2cd2b683f941ab064fe7a890286001fadc
parent64d7559532cf033845bbfdc942ee9ea02076e602 (diff)
downloadgitlab-ce-1fa7274c48a5741d1526a68f872380520e683827.tar.gz
Rename `list_id` param to `id` in Boards::Issues::ListService
-rw-r--r--app/services/boards/issues/list_service.rb2
-rw-r--r--spec/services/boards/issues/list_service_spec.rb8
2 files changed, 5 insertions, 5 deletions
diff --git a/app/services/boards/issues/list_service.rb b/app/services/boards/issues/list_service.rb
index 221fea716f7..3c48577a6be 100644
--- a/app/services/boards/issues/list_service.rb
+++ b/app/services/boards/issues/list_service.rb
@@ -10,7 +10,7 @@ module Boards
private
def list
- @list ||= board.lists.find(params[:list_id])
+ @list ||= board.lists.find(params[:id])
end
def filter_params
diff --git a/spec/services/boards/issues/list_service_spec.rb b/spec/services/boards/issues/list_service_spec.rb
index e809e80409b..010f097802d 100644
--- a/spec/services/boards/issues/list_service_spec.rb
+++ b/spec/services/boards/issues/list_service_spec.rb
@@ -37,7 +37,7 @@ describe Boards::Issues::ListService, services: true do
end
it 'delegates search to IssuesFinder' do
- params = { list_id: list1.id }
+ params = { id: list1.id }
expect_any_instance_of(IssuesFinder).to receive(:execute).once
@@ -46,7 +46,7 @@ describe Boards::Issues::ListService, services: true do
context 'sets default order to priority' 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
@@ -54,7 +54,7 @@ describe Boards::Issues::ListService, services: true do
end
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
@@ -62,7 +62,7 @@ describe Boards::Issues::ListService, services: true do
end
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