mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Clean up junk from previous tests when running new tests
This commit is contained in:
parent
29a6e95a2a
commit
26a53995db
1 changed files with 7 additions and 0 deletions
|
@ -63,3 +63,10 @@ I18n.enforce_available_locales = true
|
|||
Mail.defaults do
|
||||
delivery_method :test
|
||||
end
|
||||
|
||||
# Clean up junk from tests
|
||||
[Site::SITE_FILES_ROOT, Site::SCREENSHOTS_ROOT, Site::THUMBNAILS_ROOT].each do |p|
|
||||
FileUtils.mkdir_p p
|
||||
FileUtils.rm_rf File.join(p, '*')
|
||||
File.write File.join(p, '.gitignore'), '*'
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue