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:
parent
0f2e2d3164
commit
1e3edf7c5d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue