[rspec-users] nuby: how spec redirect_to at ApplicationController

David Chelimsky dchelimsky at gmail.com
Wed Aug 15 16:48:09 EDT 2007

On 8/15/07, Courtenay <court3nay at gmail.com> wrote:
> On 8/15/07, Priit Tamboom <priit.tamboom at gmail.com> wrote:

> > describe ApplicationController do
> >    it "method login_required should redirect to home path without login" do
> heh.  "it" is so out of place here :)

I agree. The goal is to describe behaviours of objects, not methods.
So, I'd write:

it "should redirect anonymous user to home path"


More information about the rspec-users mailing list