在 Rails 中指定 Remember_me 功能 +安全认证
我想在黄瓜中运行以下示例:
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”或“访问 http://stackoverflow.com”,但没有成功。有什么建议吗?
我想我也可以破坏 webrat 会话,但我不知道该怎么做,也不知道它是否有效。
I want to run a the following example in 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
But I don't know how to write the "And I navigate away" step. I already tried to "visit stackoverflow.com" or "visit http://stackoverflow.com", but with no success. Any suggestions?
I guess I could also destroy the webrat session, but I don't know how to do it, neither if it would work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论