summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-03-30 15:40:49 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-03-30 15:40:49 +0200
commit6f0cba11daea49cbb60166558e350e0ca61b7796 (patch)
tree0a58493be021228247213d7be155b75dd8a5e843
parent6e747d720de3d91d75b3ce189ac7d95cf5bbc74c (diff)
downloadgitlab-ce-tests/isolate-carrierwave-uploads.tar.gz
Ensure uploads dir exists when running backup specstests/isolate-carrierwave-uploads
-rw-r--r--spec/tasks/gitlab/backup_rake_spec.rb4
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)