diff options
author | Patrick Derichs <pderichs@gitlab.com> | 2019-07-05 12:50:20 +0200 |
---|---|---|
committer | Patrick Derichs <pderichs@gitlab.com> | 2019-07-16 16:18:16 +0200 |
commit | 1ebef4aae55adb5e17a76b92aea74467e49130bf (patch) | |
tree | b39ccf8b45017903a4bad4438cad3518e6c41c0e /spec/services | |
parent | 46fb73a372621918fae77c0d338d9a42a13071fd (diff) | |
download | gitlab-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.rb | 4 |
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 |