开发者

Cucumber not storing session past first page view

开发者 https://www.devze.com 2023-03-18 07:37 出处:网络
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

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!

0

精彩评论

暂无评论...
验证码 换一张
取 消