[rspec-users] would I stub an existing class method out or use fixtures in this scenario?

Matt Wynne matt at mattwynne.net
Sun Oct 5 16:47:52 EDT 2008


On 5 Oct 2008, at 12:26, Greg Hauptmann wrote:
> BankAccount.any_instance.stubs(:balance?).returns(<as required>)).
>
> Do people normal use the "any_instance.stubs" approach to stub out
> existing classes already developed, as a means to minimize associated

Is this any_instance thing in the rspec mocking framework now? I  
vaguely remember wanting this a few weeks ago and it was only in mocha  
or another of the competing mocking frameworks.


More information about the rspec-users mailing list