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

Fix case where save_and_open_page was mangling URLs in self-closing elements.

See https://github.com/jnicklas/capybara/issues/issue/188
This commit is contained in:
Adam Spiers 2010-11-08 10:09:46 +00:00 committed by Adam Spiers
parent 0323ee7d0e
commit f46df7791f

View file

@ -30,7 +30,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.to_s + '/\2')
response_html.gsub(/=("|')\/(#{directories.join('|')})/, '=\1' + Capybara.asset_root.to_s + '/\2')
end
end
end