Forum: Ruby on Rails Testing and fixture management against two databases

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Wes G. (Guest)
on 2008-11-18 23:21
I have some models in my app. that connect to a different database than
the rest of my app.

How do I set things up so that when I run my tests, I can associate the
appropriate fixtures with the appropriate database.  For example, I'll
want most of the fixtures to get loaded into the "test" database, but
I'll want to load the few that connect to the other DB into another
database (that has a connection name in database.yml).

How is that done?

This topic is locked and can not be replied to.