Make mechanize_session_spec pass on 1.9

This commit is contained in:
Michael Fellinger 2009-06-07 16:34:35 +09:00
parent 6bfdcc54cc
commit 9134b09b87
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ module Webrat #:nodoc:
else
current_path.split("/")[0..(-1 - levels_up)].join("/")
end
descendent = url.split("/")[levels_up..-1]
descendent = url.split("/")[levels_up..-1].join
"#{ancestor}/#{descendent}"
end
end