debian-mirror-gitlab/spec/support/setup_builds_storage.rb
2017-08-17 22:00:37 +05:30

18 lines
350 B
Ruby

RSpec.configure do |config|
def builds_path
Rails.root.join('tmp/tests/builds')
end
config.before(:suite) do
Settings.gitlab_ci['builds_path'] = builds_path
end
config.before(:all) do
FileUtils.mkdir_p(builds_path)
end
config.before(:each) do
FileUtils.rm_rf(builds_path)
FileUtils.mkdir_p(builds_path)
end
end