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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bb4bdf2b184027bc38d4fb529770cde5?d=identicon&s=25 Wes Gamble (weyus)
on 2008-11-18 22: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?

Thanks,
Wes
This topic is locked and can not be replied to.