RSpec setup for an application that depends on an external database from another application.

Posted by Chris Rittersdorf on Stack Overflow See other posts from Stack Overflow or by Chris Rittersdorf
Published on 2009-11-23T14:22:00Z Indexed on 2010/06/16 10:02 UTC
Read the original article Hit count: 176

Filed under:
|
|
|
|

I've had to add features to an application that depends on a database from another application. I've been able to set up a connection to this external database and pull data from it. However, I'm not sure how to get my main application to create a test database for this external application.

It would be awesome if there some way to pull in the schema for this database and create it in the same manner that 'rake db:test:prepare' does. Is there any configuration capabilities for RSpec to do this, or will I have to roll my own task?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby