Commit 568f9aa3 authored by Alessio Caiazza's avatar Alessio Caiazza

Fix workhorse file upload test helper

parent 21e23244
......@@ -29,7 +29,8 @@ module WorkhorseHelpers
post(url,
params: workhorse_params,
headers: workhorse_rewritten_fields_header('file' => file.path)
headers: workhorse_rewritten_fields_header(file_key => file.path),
env: { 'CONTENT_TYPE' => 'multipart/form-data' }
)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment