On 09/04/06, Oliver Andrich <oliver.andrich / gmail.com> wrote:> I except URI.join("http://test.de/test1", "test2") in an URI which looks> like http://test.de/test1/test2 and not like http://test.de/test2. And> from reading the documentation I even expect that> URI.join("http://test.de/", "test1", "test2") results in> http://test.de/test1/test2 and not http://test.de/test2
That's a strange result. It works as expected for me, also using 1.8.4via Darwin Ports on OS X:
URI.join("http://test.de/test1", "test2").to_s #=> "http://test.de/test2"
I don't think you're missing anything: you are getting anomalousoutput. Are you testing it with the same input data?
Paul.