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:
parent
0323ee7d0e
commit
f46df7791f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue