« Return to Thread: mock framework

mock framework

by David Chelimsky-2 :: Rate this Message:

Reply to Author | View in Thread

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?
_______________________________________________
rspec-devel mailing list
rspec-devel@...
http://rubyforge.org/mailman/listinfo/rspec-devel

 « Return to Thread: mock framework