« Return to Thread: story runner on restful_authentication question

Re: story runner on restful_authentication question

by Pat Maddox :: Rate this Message:

Reply to Author | View in Thread

On Mon, Apr 28, 2008 at 8:31 AM, steven shingler <shingler@...> wrote:
>  However, I'm getting a
>   Spec::Expectations::ExpectationNotMetError: expected redirect to "/",
>  got no redirect

Often when this happens, it's because an error occurs in the request.
You can tail test.log to see if there are any exceptions being thrown.
 My initial guess is that your request needs to be

post "/sessions"

instead of

post "/sessions/create"

Pat
_______________________________________________
rspec-users mailing list
rspec-users@...
http://rubyforge.org/mailman/listinfo/rspec-users

 « Return to Thread: story runner on restful_authentication question