[Rspec-devel] define_instance_method, stub_with, and mock_with

David Astels dastels at daveastels.com
Mon Sep 4 19:49:34 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On 4-Sep-06, at 6:38 PM, David Chelimsky wrote:

> What is important to me is that whatever mock framework we use is
> seamlessly integrated, auto-verified, etc. If mocha works its way into
> rails, it will implicitly become somewhat of a standard. And while
> rspec's expectation API and context/specify DSL offer something that
> feels different from test/unit, the mock framework really doesn't
> offer anything worthy of maintaining yet another framework.
>
> Any other opinions?

I will be looking hard at mocha/stubba tonight, but they look like a  
good way to go.  I'm quite happy to have us depricate rSpec's mock  
framework in favour of mocha/stubba.  They seem to be rapidly gaining  
popularity with the rails community.   Interestingly, Ben Grifftths  
was the author of Schmock which I based rSpecs initial mock framework  
on.  He's also one of the developer of Mocha/Stubba.  It would seem  
that rSpec Mocks and Mocha are siblings.

Pending us finding glaring problems.. I'd say switching to Mocha is a  
great idea.

Dave

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD4DBQFE/LuPauez/L4x7g4RAnk+AJiuAMCmWXXAJNQDO5f2oU8RWY7BAKDgr9WD
RZFSktou1QvcKP+eLaJhYA==
=mh0B
-----END PGP SIGNATURE-----


More information about the Rspec-devel mailing list