[rspec-users] rspec-users Digest, Vol 13, Issue 44
dougcole at gmail.com
Tue Jul 31 15:23:59 EDT 2007
Thanks. I was hoping someone else who was using observers and rspec
had run into this before and had a solution, as I always prefer the
lazy way when possible ;). I'll take a look at the rspec code base
and see if I can figure it out well enough to submit a patch.
> On 7/31/07, Doug Cole <dougcole at gmail.com> wrote:
> > If I'm not mistaken those stub them out always - I'd like to be able to stub
> > them out for most tests, but I would like to have them around when I want to
> > write tests for the observers themselves! I imagine this is a fairly common
> > use case for Observers and testing.
> There's an RFE for stubbing all instances:
> It's been there for a while. This is very low priority for me, so if
> you're interested in seeing it happen your best bet would be to submit
> a patch.
> Alternatively, I *think* that mocha supports this, so you could use
> mocha with RSpec instead of the rspec mock framework.
> > >If you're looking to stub all instances, why not use (what) Rails (calls)
> > mocks?
> > _______________________________________________
> > rspec-users mailing list
> > rspec-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
More information about the rspec-users