Clear test build storage directory before each example

This commit is contained in:
Grzegorz Bizon 2016-11-23 13:27:45 +01:00
parent 01f588edbc
commit 71ad3d294e

View file

@ -7,11 +7,12 @@ RSpec.configure do |config|
Settings.gitlab_ci['builds_path'] = builds_path
end
config.before(:each) do
config.before(:all) do
FileUtils.mkdir_p(builds_path)
end
config.after(:each) do
config.before(:each) do
FileUtils.rm_rf(builds_path)
FileUtils.mkdir_p(builds_path)
end
end