thrown when you configure Mongoid with a project that mixes ActiveRecord with MongoDB access. are there any known workarounds?
rspec-rails-2.0.x only supports using one ORM or the other, but I'm hoping to be able to support multiple ORMs with rspec-rails-2.1. There are a few other issues open related to this - just search for mongoid.
As a workaround, you can implement the same hooks into AR that rspec-rails does. See http://github.com/rspec/rspec-rails/blob/master/lib/rspec/rails/fixture_support.rb. Something like this in your spec_helper config:
RSpec.configure do |c|
c.use_transactional_fixtures = true
just ask if AR is defined instead
- Closes #254.