diff options
author | Valery Sizov <valery@gitlab.com> | 2017-03-06 18:08:18 +0200 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2017-03-06 18:08:18 +0200 |
commit | 13caadea7a123d1dc5f3475d360cd07f1aef4acb (patch) | |
tree | b840ce95eb06d5195a78ca0b42aef87085429c16 /spec/services/boards | |
parent | 91e46dd4a27ddf06b9787a95f64f1dd9ea84bad6 (diff) | |
download | gitlab-ce-13caadea7a123d1dc5f3475d360cd07f1aef4acb.tar.gz |
Addressing review comments
Diffstat (limited to 'spec/services/boards')
-rw-r--r-- | spec/services/boards/issues/move_service_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/services/boards/issues/move_service_spec.rb b/spec/services/boards/issues/move_service_spec.rb index e0bbdba531b..afa86f68344 100644 --- a/spec/services/boards/issues/move_service_spec.rb +++ b/spec/services/boards/issues/move_service_spec.rb @@ -94,13 +94,15 @@ describe Boards::Issues::MoveService, services: true do end it 'sorts issues' do + [issue1, issue2].each(&:move_to_end) + issue.move_between!(issue1, issue2) params.merge! move_after_iid: issue.iid, move_before_iid: issue2.iid described_class.new(project, user, params).execute(issue1) - expect(issue1.relative_position).to be_between(issue.relative_position, issue2.relative_position) + expect(issue.relative_position).to be_between(issue1.relative_position, issue2.relative_position) end end end |