1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/lib
Travis Grathwell e4db955395 inject_asset_host should not raise if <head> is missing
Previously, if you had Capybara.asset_host defined and tried to
`save_page` on a document without a <head> tag (like plain text)
`inject_asset_host` would crash trying to string-replace a <base>
tag onto the nonexistant <head>.

Since there's probably no need for it to successfully inject a
<base> into such documents, now it will return the original content
when there is no <head> present.
2015-05-04 01:02:36 -07:00
..
capybara inject_asset_host should not raise if <head> is missing 2015-05-04 01:02:36 -07:00
capybara.rb add Capybara.wait_on_first_by_default setting to control default behavior of Node#first 2015-04-23 10:12:25 -07:00