diff options
author | Valery Sizov <valery@gitlab.com> | 2017-03-07 14:42:17 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2017-03-07 14:42:17 +0300 |
commit | a0108c6925239aab8164c28851d19f5d01eb8321 (patch) | |
tree | b7c03d99ed3684834bae06b5e86641fcaa3bfdfb /spec/services | |
parent | 710e4df933ba2070dcc104a18de834c23dd1e5be (diff) |
Address review comments
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/boards/issues/move_service_spec.rb | 2 | ||||
-rw-r--r-- | spec/services/issues/update_service_spec.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/services/boards/issues/move_service_spec.rb b/spec/services/boards/issues/move_service_spec.rb index afa86f68344..6c9709c808e 100644 --- a/spec/services/boards/issues/move_service_spec.rb +++ b/spec/services/boards/issues/move_service_spec.rb @@ -98,7 +98,7 @@ describe Boards::Issues::MoveService, services: true do issue.move_between!(issue1, issue2) - params.merge! move_after_iid: issue.iid, move_before_iid: issue2.iid + params.merge!(move_after_iid: issue.iid, move_before_iid: issue2.iid) described_class.new(project, user, params).execute(issue1) diff --git a/spec/services/issues/update_service_spec.rb b/spec/services/issues/update_service_spec.rb index 81d6162e04c..fa472f3e2c3 100644 --- a/spec/services/issues/update_service_spec.rb +++ b/spec/services/issues/update_service_spec.rb @@ -59,8 +59,8 @@ describe Issues::UpdateService, services: true do end it 'sorts issues as specified by parameters' do - issue1 = create :issue, project: project, assignee_id: user3.id - issue2 = create :issue, project: project, assignee_id: user3.id + issue1 = create(:issue, project: project, assignee_id: user3.id) + issue2 = create(:issue, project: project, assignee_id: user3.id) [issue, issue1, issue2].each do |issue| issue.move_to_end |