Skip to content

Commit

Permalink
Add multipart upload test
Browse files Browse the repository at this point in the history
  • Loading branch information
edgurgel committed Sep 1, 2016
1 parent a97daf5 commit af3931f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/httpoison_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ defmodule HTTPoisonTest do
assert is_list(headers)
end

test "multipart upload" do
response = HTTPoison.post("localhost:8080/post", {:multipart, [{:file, "test/test_helper.exs"}, {"name", "value"}]})
assert_response(response)
end

defp assert_response({:ok, response}, function \\ nil) do
assert is_list(response.headers)
assert response.status_code == 200
Expand Down

0 comments on commit af3931f

Please sign in to comment.