[rspec-users] controller code doesn't seem to be called within rspec test

David Chelimsky dchelimsky at gmail.com
Wed Oct 21 09:05:19 EDT 2009

On Wed, Oct 21, 2009 at 7:19 AM, Alexander Seidl <lists at ruby-forum.com>wrote:

> David Chelimsky wrote:
> > [...]
> > Please quote at least the relevant part of the previous email when you
> > respond
> > [...]
> yes ok, i'll keep that in mind.
> > If you reverse lines 6 and 7 on http://pastie.org/663143, the example
> > _should_ pass, so I'm a bit mystified.
> I changed this two lines. Please have a look at the updated pastie:
> http://pastie.org/663143. The test still failes. But it shouldn't!
> Because current_user IS obviously called by the controller.
> > That said, why are you specifying
> > that current_user is called rather than something about the response? Or
> > is
> > this just an excerpt you're using for demonstration?
> This is no real test or controller, i would write or use. But i found
> out that this is the root of all my problems with rspec. So i boiled it
> down to this simple example.

Rails version?
Ruby version?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20091021/ad335b63/attachment-0001.html>

More information about the rspec-users mailing list