[Rspec-devel] mocks with blocks

David Astels dastels at daveastels.com
Sat Sep 2 18:37:43 EDT 2006


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


On 2-Sep-06, at 1:59 PM, David Chelimsky wrote:

> ...
>
> Admittedly, the block syntax is a bit more flexible, as it allows you
> to provide custom matching like this:
>
> @mock.should_receive(:msg) do |val|
>   val.should_be_close 0.25, 0.001
> end
>
> But I'm not convinced that anyone is actually using it and I'd like to
> kill it as the supporting code is just gumming up the works. Are any
> of you using it?

I haven't had need for it yet

Dave

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

iD8DBQFE+ge+auez/L4x7g4RAu7QAKDdOTVj8UWxXetYtn5ALjVi12QBogCggO03
8HZDY3AwvSJpwLXh3uZu7jw=
=qFOB
-----END PGP SIGNATURE-----


More information about the Rspec-devel mailing list