marcoow / rust_rest

MIT License
5 stars 1 forks source link

simplify test helper #25

Closed marcoow closed 1 year ago

marcoow commented 1 year ago

This simplifies the test helper so that the additional template isn't needed anymore. The fix is to simply connect to the postgres database in the helper so no connection is ever made directly to the source database that's used as a template for all of the individual test databases. That also seems to be what e.g. Rails does in all of the DB management rake tasks (and what we do in db.rs now.)