blob: a3e596461873c9c669a99e9cb1a6a5037e89d7c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
RSpec.configure do |config|
def builds_path
Rails.root.join('tmp/builds')
end
config.before(:each) do
FileUtils.mkdir_p(builds_path)
FileUtils.touch(File.join(builds_path, ".gitkeep"))
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
|