diff options
author | lain <lain@soykaf.club> | 2020-06-24 09:00:17 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-06-24 09:00:17 +0000 |
commit | 510031ece2ec8761d0555011caaa4fbcd1fc28e4 (patch) | |
tree | ebb53ef6f271a7dfa6dc84b150bb06970020055c /test/http_test.exs | |
parent | b4a502fc8b0f7efb1ef973548fec20661038a18a (diff) | |
parent | 65f3eb333b001586771247ea9949e40bfec0a947 (diff) | |
download | pleroma-510031ece2ec8761d0555011caaa4fbcd1fc28e4.tar.gz pleroma-510031ece2ec8761d0555011caaa4fbcd1fc28e4.zip |
Merge branch 'issue/1872-updated-tzdata' into 'develop'
[#1872] use Pleroma.HTTP for Tzdata
See merge request pleroma/pleroma!2678
Diffstat (limited to 'test/http_test.exs')
-rw-r--r-- | test/http_test.exs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/http_test.exs b/test/http_test.exs index 618485b55..d394bb942 100644 --- a/test/http_test.exs +++ b/test/http_test.exs @@ -17,6 +17,9 @@ defmodule Pleroma.HTTPTest do } -> json(%{"my" => "data"}) + %{method: :head, url: "http://example.com/hello"} -> + %Tesla.Env{status: 200, body: ""} + %{method: :get, url: "http://example.com/hello"} -> %Tesla.Env{status: 200, body: "hello"} @@ -27,6 +30,12 @@ defmodule Pleroma.HTTPTest do :ok end + describe "head/1" do + test "returns successfully result" do + assert HTTP.head("http://example.com/hello") == {:ok, %Tesla.Env{status: 200, body: ""}} + end + end + describe "get/1" do test "returns successfully result" do assert HTTP.get("http://example.com/hello") == { |