mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Merge remote branch 'aslakhellesoy/absolute-uri-fix'
This commit is contained in:
commit
2bc894e435
1 changed files with 2 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
require 'uri'
|
||||
require 'net/http'
|
||||
require 'rack'
|
||||
require 'rack/handler/mongrel'
|
||||
|
@ -18,6 +19,7 @@ class Capybara::Server
|
|||
end
|
||||
|
||||
def url(path)
|
||||
path = URI.parse(path).request_uri if path =~ /^http/
|
||||
"http://#{host}:#{port}#{path}"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue