hobo icon indicating copy to clipboard operation
hobo copied to clipboard

Problems with capybara sessions.

Open fpellanda opened this issue 14 years ago • 1 comments

Hi,

I found a problem when using hobo with capybara. in dev_controller.rb. When redirecting to "" (home_page has this value by default) capybara 'forgets' the session. Do you know if redirect to "" is really allowed? Maybe the home_page should have a real value instead of "". Think this would solve the problem also.

Capybara does not remember session when redirecting to "". Use "/" instead.

fpellanda avatar Oct 23 '11 14:10 fpellanda

In many environments, redirecting to "/" is wrong -- the application is deployed in a sub-path. It's certainly possible that your patch won't break those apps, but I'd like to be sure before applying your patch.

bryanlarsen avatar Oct 23 '11 16:10 bryanlarsen