RSpec 2.6 supports "any_instance" now

Updated . Posted . Visible to the public.

This finally works:
User.any_instance.should_receive(...)
as does
User.any_instance.stub(...)

Note: You won't have RSpec 2.6 if you're still working on Rails 2.

Tobias Kraze
Last edit
License
Source code in this card is licensed under the MIT License.
Posted by Tobias Kraze to makandra dev (2011-07-20 09:15)