1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

save and open page works with pathname as asset root

This commit is contained in:
Jonas Nicklas 2010-01-29 23:52:17 +01:00
parent 0f2e2d3164
commit 1e3edf7c5d

View file

@ -27,7 +27,7 @@ module Capybara
list << name if File.directory?(name) and not name.to_s =~ /^\./
list
end
response_html.gsub(/("|')\/(#{directories.join('|')})/, '\1' + Capybara.asset_root + '/\2')
response_html.gsub(/("|')\/(#{directories.join('|')})/, '\1' + Capybara.asset_root.to_s + '/\2')
end
end
end