Rails testing – Setup multiple databases when running rake spec
We currently have 2 databases for our application and I had a need to basically setup both databases, our test database, and another stats database. I also noticed an issue where running rake spec wouldn’t run in the test environment, which we always wanted it to run it. My solution is the below (Note: We… Read More »