summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2015-07-10 14:44:07 +0200
committerJacob Vosmaer <contact@jacobvosmaer.nl>2015-07-10 14:44:07 +0200
commit810ffab4b135024a76b2b68f0edbbbf76036d027 (patch)
treefa9a5cef33124f49f010936c432f58a4e8deaead /spec
parent4612599e5eb94e09f539a3fbbc3a1eaeaa96a3c7 (diff)
downloadgitlab-ce-810ffab4b135024a76b2b68f0edbbbf76036d027.tar.gz
Use a loop when enabling subtasks
Diffstat (limited to 'spec')
-rw-r--r--spec/tasks/gitlab/backup_rake_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/tasks/gitlab/backup_rake_spec.rb b/spec/tasks/gitlab/backup_rake_spec.rb
index ec06670ba19..476e22b8802 100644
--- a/spec/tasks/gitlab/backup_rake_spec.rb
+++ b/spec/tasks/gitlab/backup_rake_spec.rb
@@ -74,9 +74,9 @@ describe 'gitlab:app namespace rake task' do
end
def reenable_backup_sub_tasks
- Rake::Task["gitlab:backup:db:create"].reenable
- Rake::Task["gitlab:backup:repo:create"].reenable
- Rake::Task["gitlab:backup:uploads:create"].reenable
+ %w{db repo uploads}.each do |subtask|
+ Rake::Task["gitlab:backup:#{subtask}:create"].reenable
+ end
end
before :all do