obrok / futile

lightweight functional/blackbox/acceptance testing package for web pages
8 stars 0 forks source link

Parsing URI #6

Closed obrok closed 14 years ago

obrok commented 15 years ago

I think these should work, because it's obvious what you mean, but have been unable to produce a working implementation of process_uri Futile::Session.new("google.com:80") Futile::Session.new("google.com")

michalbugno commented 14 years ago

This seems ok, but only in initialization

app = Futile::Session.new("google.com")
app.full_path #=> "http://www.google.com/"
app.get("onet.pl")
app.full_path #=> "http://google.com/onet.pl"
obrok commented 14 years ago

I played with this a bit in the console. I think it works for now ;-]