Skip to content

Commit

Permalink
Improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmach committed Jun 24, 2024
1 parent b6f542c commit 7148e42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/req/steps_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,9 @@ defmodule Req.StepsTest do
|> Plug.Conn.send_resp(200, create_tar(files))
end

assert Req.get!(plug: plug, url: "/foo.tar").body == files
resp = Req.get!(plug: plug, url: "/foo.tar")
assert resp.headers["content-type"] == ["application/octet-stream; charset=utf-8"]
assert resp.body == files
end

test "tar (path, no content-type)" do
Expand Down

0 comments on commit 7148e42

Please sign in to comment.