Browse files

Don't parse current_host

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
  • Loading branch information...
1 parent 67a78f4 commit 278f4e7be896bcec211f2c7c05730dcd4a3c88ea @bcardarella bcardarella committed Dec 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/capybara/rack_test/browser.rb
@@ -94,7 +94,7 @@ def html
def build_rack_mock_session
reset_host! unless current_host
-, URI.parse(current_host).host)
+, current_host)
def request_path

0 comments on commit 278f4e7

Please sign in to comment.