summaryrefslogtreecommitdiff
path: root/spec/services
diff options
context:
space:
mode:
authorPatrick Derichs <pderichs@gitlab.com>2019-07-05 12:50:20 +0200
committerPatrick Derichs <pderichs@gitlab.com>2019-07-16 16:18:16 +0200
commit1ebef4aae55adb5e17a76b92aea74467e49130bf (patch)
treeb39ccf8b45017903a4bad4438cad3518e6c41c0e /spec/services
parent46fb73a372621918fae77c0d338d9a42a13071fd (diff)
downloadgitlab-ce-1ebef4aae55adb5e17a76b92aea74467e49130bf.tar.gz
Add result to MoveService#execute_multiple
It adds a hash response which includes the count, success state and the moved issues itself so the caller has additional information about the result of the process.
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/boards/issues/move_service_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/boards/issues/move_service_spec.rb b/spec/services/boards/issues/move_service_spec.rb
index 1bfb5602df2..cf84ec8fd4c 100644
--- a/spec/services/boards/issues/move_service_spec.rb
+++ b/spec/services/boards/issues/move_service_spec.rb
@@ -68,8 +68,8 @@ describe Boards::Issues::MoveService do
project.add_developer(user)
end
- it 'returns false if list of issues is empty' do
- expect(described_class.new(group, user, params).execute_multiple([])).to eq(false)
+ it 'returns the expected result if list of issues is empty' do
+ expect(described_class.new(group, user, params).execute_multiple([])).to eq({ count: 0, success: false, issues: [] })
end
context 'moving multiple issues' do