« Return to Thread: mock framework

Re: mock framework

by James Deville :: Rate this Message:

Reply to Author | View in Thread


On Aug 22, 2007, at 8:20 AM, Jay Levitt wrote:

> David Chelimsky wrote:
>> 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.
> +1!  I currently use rspec's mocks because they're the default, but  
> I'd
> have no problems switching frameworks.  If there's no good reason to
> have our own, let's not have our own.
>
> Jay
>

+1, and +1 to moving things like Spec:UI and Spec:distributed. I  
would suggest keeping the literature on mocking, with minor  
modifications. The tight integration with mocking, and the pushing  
the ideas in the literature is what got my team and I to use it.  The  
current Rails literature really only shows mocks as a way to mock out  
an external project, but I think it is good to use it to isolate  
tests as well. I think that is proper BDD, too.

JIm

>
> _______________________________________________
> rspec-devel mailing list
> rspec-devel@...
> http://rubyforge.org/mailman/listinfo/rspec-devel

_______________________________________________
rspec-devel mailing list
rspec-devel@...
http://rubyforge.org/mailman/listinfo/rspec-devel

 « Return to Thread: mock framework