[rspec-devel] mock framework

David Chelimsky dchelimsky at gmail.com
Wed Aug 22 10:55:25 EDT 2007


I'd like to ditch rspec's mock framework and let ppl use mocha or
flexmock or RR (or others). RSpec's mocking framework doesn't really
offer anything above those frameworks, and it's therefore an
unnecessary burden to maintain.

Here's my thinking:

We break spec/mocks out into a separate project and release the one
and only release when we release rspec 1.1.

If you want to continue to use rspec mocks you can do so but you'll
have to declare it in spec_helper (or somewhere global), but
spec/mocks will be deprecated, and people would be encouraged to start
using other frameworks.

This isn't a slam dunk, btw - there are some dependencies on rspec's
mock framework in the rails plugin that would have to be addressed
with either one-off solutions or adapters for the other frameworks.
One thing I do NOT want to do is have RSpec prefer one framework over
another.

Thoughts?


More information about the rspec-devel mailing list