From 7148e42075eeafe5fbb2af15f088bc7e3cd76510 Mon Sep 17 00:00:00 2001 From: Wojtek Mach Date: Mon, 24 Jun 2024 10:49:39 +0200 Subject: [PATCH] Improve test --- test/req/steps_test.exs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/req/steps_test.exs b/test/req/steps_test.exs index 681d3ab..26e55b6 100644 --- a/test/req/steps_test.exs +++ b/test/req/steps_test.exs @@ -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