I'm building a Rails application that requires some models to interact with some necessary Java libraries. To do this, I want to use Rails on on MRI - not JRuby or RBJ. The Java code only needs read access to the database tables managed by the Rails app.
One way to do this is to set up a Servlet that reads the Rails app's database tables.
The problem is that during testing, using Rails transactional fixtures makes all database activity during the test invisible to external processes such as the Servlet.
For deployment, this isn't a problem, but it's not real clear how to do automated testing under these conditions.
How can I use RSpec to test Rails models that depend on external processes having access to the tables managed by Rails?