[Rspec-devel] define_instance_method, stub_with, and mock_with
dastels at daveastels.com
Mon Sep 4 19:49:34 EDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
-----END PGP SIGNATURE-----
More information about the Rspec-devel