diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-10-24 11:05:21 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-10-25 08:40:08 +0300 |
commit | 7c0ccbaac4aad5057f76d4f62b3a892aae64e190 (patch) | |
tree | 105f1c52bb5d1471c133e0cd6f02c54a63d602a0 /spec/services/issues | |
parent | 3e941b136d335b789c7efea46fc3b8af294d3f47 (diff) |
Fix Rubocop offenses in issue move specs
Diffstat (limited to 'spec/services/issues')
-rw-r--r-- | spec/services/issues/move_service_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/services/issues/move_service_spec.rb b/spec/services/issues/move_service_spec.rb index 8c33389003a..302eef8bf7e 100644 --- a/spec/services/issues/move_service_spec.rb +++ b/spec/services/issues/move_service_spec.rb @@ -23,7 +23,7 @@ describe Issues::MoveService, services: true do old_project.team << [user, :reporter] new_project.team << [user, :reporter] - labels = 2.times.map { |x| "label%d" % (x + 1) } + labels = Array.new(2) { |x| "label%d" % (x + 1) } labels.each do |label| old_issue.labels << create(:label, @@ -32,7 +32,7 @@ describe Issues::MoveService, services: true do new_project.labels << create(:label, title: label) end - end + end end describe '#execute' do @@ -284,7 +284,7 @@ describe Issues::MoveService, services: true do old_project.team << [user, :reporter] new_project.team << [user, :reporter] - labels = 2.times.map { |x| "label%d" % (x + 1) } + labels = Array.new(2) { |x| "label%d" % (x + 1) } labels.each do |label| new_project.labels << create(:label, title: label) |