That’s it! I updated the original post to include this information. You might also want to revert the change in DEV: Allow rake plugin:spec to traverse symlinks · discourse/discourse@dfd63b1 · GitHub as traversal of symbolic links works already, right?
Regarding the testability question, I will clear the database in the tests which will not mess with the database from the development environment because all transactions will be rolled back.