Cucumber 不存储首页视图之后的会话
我正在经历这种情况: Rails、Cucumber、Capybara:会话未持久< /a>
该页面上没有选定的答案,并且每个发布的答案都不适合我,所以我将尝试稍微扩展一下这个问题。 Cucumber/Capybara 倾向于仅将会话保留在一页视图中。如果您尝试浏览第一页,您会立即重定向到登录页面。会话不会持续,Capybara 被迫注销。
我访问了这篇文章: http ://blog.ardes.com/2010/4/28/capybara-and-rack-test-sessions-and-http-methods 并且没有找到运气,因为我的路径已经以正斜杠开始。
有人对这个问题有2美分吗?谢谢!
I am going through this situation: Rails, Cucumber, Capybara: session is not persisted
There wasn't a chosen answer on that page, and each posted answer didn't work for me, so I will try to expand on the problem a bit. Cucumber/Capybara tends to only keep the session around for one page view. If you try traversing past the first page, you immediately get redirected to the login page. The session doesn't persist and Capybara is forced to log out.
I visited this article: http://blog.ardes.com/2010/4/28/capybara-and-rack-test-sessions-and-http-methods
and have found no luck as my paths were already starting with forward slashes.
Anyone have any 2 cents about this issue? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论