[rspec-users] story runner on restful_authentication question

Pat Maddox pergesu at gmail.com
Mon Apr 28 12:10:00 EDT 2008

On Mon, Apr 28, 2008 at 8:31 AM, steven shingler <shingler at gmail.com> 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"


More information about the rspec-users mailing list