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

Improve save_page for binary content

This commit is contained in:
Christopher Schramm 2014-01-07 18:32:36 +01:00
parent 80befdad73
commit c7798dee56

View file

@ -354,7 +354,7 @@ module Capybara
FileUtils.mkdir_p(File.dirname(path))
File.open(path,'w') { |f| f.write(Capybara::Helpers.inject_asset_host(body)) }
File.open(path,'wb') { |f| f.write(Capybara::Helpers.inject_asset_host(body)) }
path
end