lib/capybara/mechanize/browser.rb in bbc-capybara-mechanize-0.3.5 vs lib/capybara/mechanize/browser.rb in bbc-capybara-mechanize-0.3.6

- old
+ new

@@ -186,10 +186,10 @@ remote_uri = URI.parse(url) if remote_uri.host.nil? remote_host = @last_remote_host || Capybara.app_host || Capybara.default_host url = File.join(remote_host, url) - url = "http://#{url}" unless url.include?("http") + url = "http://#{url}" unless url =~ /^http(s?):/ else @last_remote_host = "#{remote_uri.host}:#{remote_uri.port}" end reset_cache! \ No newline at end of file