gitlab-org--gitlab-foss/spec/support/setup_builds_storage.rb

21 lines
374 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2015-08-25 21:42:46 -04:00
RSpec.configure do |config|
def builds_path
Rails.root.join('tmp/tests/builds')
2015-08-25 21:42:46 -04:00
end
config.before(:suite) do
Settings.gitlab_ci['builds_path'] = builds_path
end
config.before(:all) do
2015-08-25 21:42:46 -04:00
FileUtils.mkdir_p(builds_path)
end
2018-12-11 01:29:58 -05:00
config.before do
FileUtils.rm_rf(builds_path)
FileUtils.mkdir_p(builds_path)
2015-08-25 21:42:46 -04:00
end
end