blob: 1f3b12bb8d2f292c75c81b9a29fd712ed05c4d80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
RSpec.configure do |config|
def builds_path
Rails.root.join('tmp/builds_test')
end
config.before(:each) do
FileUtils.mkdir_p(builds_path)
Settings.gitlab_ci['builds_path'] = builds_path
end
config.after(:suite) do
Dir.chdir(builds_path) do
`ls | grep -v .gitkeep | xargs rm -r`
end
end
end
|