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
1 changed files with 1 additions and 1 deletions

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