polyamspace / mastodon

Custom Mastodon fork used by https://polyam.space
GNU Affero General Public License v3.0
1 stars 2 forks source link

Fix specs adding media to `public/system` #553

Closed polyamAdmin closed 2 months ago

polyamAdmin commented 2 months ago

config/environment/test.rb already defines spec/test_files as root path, but this seems to be overridden by config/initializers/paperclip.rb

This caused media uploads from specs being left in public/system after ran locally.

polyamAdmin commented 2 months ago

System specs still write to public/system but these are usually not ran locally and this likely can't be fixed without using paperclip env vars.