Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't parse current_host when building mock session #899

Merged
merged 1 commit into from
Dec 3, 2012
Merged

Don't parse current_host when building mock session #899

merged 1 commit into from
Dec 3, 2012

Conversation

bcardarella
Copy link
Contributor

Because the current_host is now being explicitly set to the host instead
of the full URI (as it was in Capybara 1.x) when URI.parse is being used
the result will always be nil when parsing the host from an incomplete
URI.

Because the current_host is now being explicitly set to the host instead
of the full URI (as it was in Capybara 1.x) when URI.parse is being used
the result will always be `nil` when parsing the host from an incomplete
URI.
@bcardarella
Copy link
Contributor Author

This is a bug that is causing issues as the default_host for the mock session object is nil and thus the default_host for the CookieJar is also set to nil.

jnicklas added a commit that referenced this pull request Dec 3, 2012
Don't parse current_host when building mock session
@jnicklas jnicklas merged commit 7137de8 into teamcapybara:master Dec 3, 2012
@bcardarella
Copy link
Contributor Author

Woot!

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