[rspec-users] RSpec 2 view specs: partial mocks
michael at schuerig.de
Tue Jun 22 11:30:43 EDT 2010
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
mailto:michael at schuerig.de
More information about the rspec-users