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 else
current_path.split("/")[0..(-1 - levels_up)].join("/") current_path.split("/")[0..(-1 - levels_up)].join("/")
end end
descendent = url.split("/")[levels_up..-1] descendent = url.split("/")[levels_up..-1].join
"#{ancestor}/#{descendent}" "#{ancestor}/#{descendent}"
end end
end end