diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-07-10 14:44:07 +0200 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-07-10 14:44:07 +0200 |
commit | 810ffab4b135024a76b2b68f0edbbbf76036d027 (patch) | |
tree | fa9a5cef33124f49f010936c432f58a4e8deaead /spec | |
parent | 4612599e5eb94e09f539a3fbbc3a1eaeaa96a3c7 (diff) | |
download | gitlab-ce-810ffab4b135024a76b2b68f0edbbbf76036d027.tar.gz |
Use a loop when enabling subtasks
Diffstat (limited to 'spec')
-rw-r--r-- | spec/tasks/gitlab/backup_rake_spec.rb | 6 |
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 |