Cucumber 在rails+restful身份验证中指定记住我的功能

Cucumber 在rails+restful身份验证中指定记住我的功能,cucumber,restful-authentication,Cucumber,Restful Authentication,我想在cucumber中运行以下示例: Scenario: Anonymous user can log in and be remembered Given I am logged in with reminder When I navigate away And I go to the list of cornetas Then I should be logged in 但我不知道怎么写,于是我离开了这一步。我已经尝试访问stackoverflow.c

我想在cucumber中运行以下示例:

  Scenario: Anonymous user can log in and be remembered
    Given I am logged in with reminder
    When I navigate away
    And I go to the list of cornetas
    Then I should be logged in
但我不知道怎么写,于是我离开了这一步。我已经尝试访问stackoverflow.com或访问,但没有成功。有什么建议吗

我想我也可以破坏webrat会话,但我不知道如何做,也不知道它是否有效