Skip to content

Problems with capybara sessions. - #31

Open
fpellanda wants to merge 1 commit into
tslocke:rails3from
fpellanda:rails3
Open

fpellanda wants to merge 1 commit into
tslocke:rails3from
fpellanda:rails3

Conversation

@fpellanda

Copy link
Copy Markdown

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.

@bryanlarsen

Copy link
Copy Markdown
Collaborator

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.

gabriprat pushed a commit to gabriprat/hobo that referenced this pull request Mar 20, 2016
Fix Stringify error with Chrome and Push State requests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants