I'm using Rails 6.0 for API purposes only, we have a 3 DB setup with multiple databases typically being accessed during a single request spec. We've issues using transactions to clean the database with multiple databases. I've tried setting up something similar to this: http://joshfrankel.me/blog/configure-rspec-for-multiple-databases-with-database-cleaner-support/ and tried every variation I could think of, but still have problems. Is there any guide for setting up rspec + Rails 6.0 + multiple databases? I was able to get a working solution using DatabaseCleaner + truncation as a strategy but as our suite has grown I'd love to get back the performance benefit of transactions. I played around more last night and still had similar issues. I can describe what seems to be happening in more detail if needed, but as of yet I haven't found any good resources on the best way to achieve this setup.
-- You received this message because you are subscribed to the Google Groups "rspec" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/2c3aeeba-525e-4b2e-8638-f68ad44f173do%40googlegroups.com.
