How to use more than ONE mock frmk (mocha, rr, rspec)

I have started to play with
and I really like its hyper-minimalist but readable syntax …

For the sake of flexibility, I’d like to use more than 1 mock framework.
E.g.: The specs which come with the restful-authentication plugin are
‘RSpec’ mock framework and my project is ussing ‘rr’

I thought I could put at the beginning of each file:

Spec::Runner.configure do |config|
config.mock_with :rr


Spec::Runner.configure do |config|
config.mock_with :rspec

Running each spec individually works but running them ALL within
Autotest or
“rake spec” will fail …

I am using Rails 2.1 + RSpec edge.

I thought maybe someone has the same needs and found a solution.
I’ll patch Rspec

View this message in context:
Sent from the rspec-users mailing list archive at