Ensure uploads dir exists when running backup specs

This commit is contained in:
Grzegorz Bizon 2016-03-30 15:40:49 +02:00
parent 6e747d720d
commit 6f0cba11da

View file

@ -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)