diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-30 15:40:49 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-30 15:40:49 +0200 |
commit | 6f0cba11daea49cbb60166558e350e0ca61b7796 (patch) | |
tree | 0a58493be021228247213d7be155b75dd8a5e843 /spec/tasks | |
parent | 6e747d720de3d91d75b3ce189ac7d95cf5bbc74c (diff) | |
download | gitlab-ce-6f0cba11daea49cbb60166558e350e0ca61b7796.tar.gz |
Ensure uploads dir exists when running backup specstests/isolate-carrierwave-uploads
Diffstat (limited to 'spec/tasks')
-rw-r--r-- | spec/tasks/gitlab/backup_rake_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/tasks/gitlab/backup_rake_spec.rb b/spec/tasks/gitlab/backup_rake_spec.rb index 320be9a0b61..05fc4c4554f 100644 --- a/spec/tasks/gitlab/backup_rake_spec.rb +++ b/spec/tasks/gitlab/backup_rake_spec.rb @@ -7,8 +7,12 @@ describe 'gitlab:app namespace rake task' do Rake.application.rake_require 'tasks/gitlab/backup' Rake.application.rake_require 'tasks/gitlab/shell' Rake.application.rake_require 'tasks/gitlab/db' + # empty task as env is already loaded Rake::Task.define_task :environment + + # We need this directory to run `gitlab:backup:create` task + FileUtils.mkdir_p('public/uploads') end def run_rake_task(task_name) |