authlogic flash[:notice] does not show up in cucumber webrat step

后端 未结 4 883
一个人的身影
一个人的身影 2021-01-26 02:30

I am running BDD steps with cucumber to implement my autlogic login behavior.

 Scenario: log in
Given a registered user: \"test@test.com\" with password: \"p@ssw         


        
4条回答
  •  情书的邮戳
    2021-01-26 03:07

    Looks like rails 2.3.8 has changed the method in which is displays notices..

    redirect_to(root_url, :notice => 'Login successful!')
    

    might be what you're looking for.

提交回复
热议问题