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

19 lines
350 B
Ruby
Raw Normal View History

2015-08-26 01:42:46 +00:00
RSpec.configure do |config|
def builds_path
Rails.root.join('tmp/tests/builds')
2015-08-26 01:42:46 +00:00
end
config.before(:suite) do
Settings.gitlab_ci['builds_path'] = builds_path
end
config.before(:all) do
2015-08-26 01:42:46 +00:00
FileUtils.mkdir_p(builds_path)
end
config.before(:each) do
FileUtils.rm_rf(builds_path)
FileUtils.mkdir_p(builds_path)
2015-08-26 01:42:46 +00:00
end
end