On Tuesday 22 June 2010, David Chelimsky wrote:
> On Jun 22, 2010, at 10:06 AM, David Chelimsky wrote:
> > On Jun 22, 2010, at 9:58 AM, Michael Schuerig wrote:

> >>> Stubs and assigns are unrelated, so even though this might be a
> >>> bug, I don't think it's the cause of what you're seeing.
> >> 
> >> It is. If I put all the assign(:x, value) before I first access
> >> #view, everything works as expected. The problem I had is
> >> entirely unrelated to stubs.
> > 
> > Well, to be fair, the initial problem you cited in this thread
> > (even in the subject line) is "partial mocks", not "assigns."

Yes, indeed. That's because I was confused by the behavior I was seeing. 
I found the root cause only because I had to dig in there for another 
reason.

Michael

-- 
Michael Schuerig
mailto:mich...@schuerig.de
http://www.schuerig.de/michael/
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to