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