[rspec-users] Failure trying to test ApplicationController

Steve vertebrate at gmail.com
Tue Oct 16 02:40:18 EDT 2007

On Tue, 16 Oct 2007 01:02:58 -0500, David Chelimsky wrote:

> But how do you know that it's being used? The behaviour you're
> spec'ing is that a given action should redirect if the user is not
> logged in, right? If you look at it that way, then it seems perfectly
> acceptable to do this:
> describe "some action on some controller" do
>   it_should_behave_like "action that requires login"
>   ...
> end

I see what you're saying now, and agree that that's probably the best way
to approach it.


More information about the rspec-users mailing list