Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2015-07-10 15:44:07 +0300
committerJacob Vosmaer <contact@jacobvosmaer.nl>2015-07-10 15:44:07 +0300
commit810ffab4b135024a76b2b68f0edbbbf76036d027 (patch)
treefa9a5cef33124f49f010936c432f58a4e8deaead /spec/tasks
parent4612599e5eb94e09f539a3fbbc3a1eaeaa96a3c7 (diff)
Use a loop when enabling subtasks
Diffstat (limited to 'spec/tasks')
-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