[Rspec-devel] New proc.should_increment method

David Astels dastels at daveastels.com
Fri Jul 14 16:47:40 EDT 2006


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


On 14-Jul-06, at 4:14 PM, aslak hellesoy wrote:
>
> One thing I'd like to instead of:
>
>   thing = mock("thing")
>
> is to do:
>
>   thing = mock(Thing) # passing a class rather than a string
>
> -and have the mock fail if you tell it to expect a message that is not
> defined by Thing.

So.. only being able to mock classes that exist.  I don't like that  
at all.  That doesn't let you use mocks to explore & discover the  
interface.

Maybe as a flavour of mock... but not as the only way to do it.

Dave

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

iD8DBQFEuALsauez/L4x7g4RAvJdAKCTenKZFBfnyLaMwg7DJ/1YifMO5QCgwBVD
SKjNzUK0SFtpzxKEXOocXDo=
=PAsE
-----END PGP SIGNATURE-----


More information about the Rspec-devel mailing list