diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-03-16 17:58:42 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-03-16 17:58:42 +0300 |
commit | 0e07c5ef5717460d37336129cb657ba11091f09d (patch) | |
tree | 801cb7957ebe2e4f227f089afc902ea2084eaf27 /test/web/media_proxy | |
parent | 7c8003c3fcdcab075b9722ab236bf2d1d0e0e8cd (diff) | |
parent | b80958d4e3fb9cdbb9b10149a52f1441edb4b1e3 (diff) | |
download | pleroma-0e07c5ef5717460d37336129cb657ba11091f09d.tar.gz pleroma-0e07c5ef5717460d37336129cb657ba11091f09d.zip |
Merge remote-tracking branch 'remotes/origin/develop' into 1364-notifications-sending-control
Diffstat (limited to 'test/web/media_proxy')
-rw-r--r-- | test/web/media_proxy/media_proxy_controller_test.exs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/web/media_proxy/media_proxy_controller_test.exs b/test/web/media_proxy/media_proxy_controller_test.exs index f035dfeee..7ac7e4af1 100644 --- a/test/web/media_proxy/media_proxy_controller_test.exs +++ b/test/web/media_proxy/media_proxy_controller_test.exs @@ -52,9 +52,8 @@ defmodule Pleroma.Web.MediaProxy.MediaProxyControllerTest do url = Pleroma.Web.MediaProxy.encode_url("https://google.fn/test.png") invalid_url = String.replace(url, "test.png", "test-file.png") response = get(conn, invalid_url) - html = "<html><body>You are being <a href=\"#{url}\">redirected</a>.</body></html>" assert response.status == 302 - assert response.resp_body == html + assert redirected_to(response) == url end test "it performs ReverseProxy.call when signature valid", %{conn: conn} do |