f0391c2517
Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
20 lines
374 B
Ruby
20 lines
374 B
Ruby
# frozen_string_literal: true
|
|
|
|
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 do
|
|
FileUtils.rm_rf(builds_path)
|
|
FileUtils.mkdir_p(builds_path)
|
|
end
|
|
end
|