Make mechanize_session_spec pass on 1.9
This commit is contained in:
parent
6bfdcc54cc
commit
9134b09b87
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user