tests: add a test to verify the general fake direction protection works in all cases

This commit is contained in:
William Pitcock 2018-11-17 20:31:20 +00:00
commit 55640c4804
3 changed files with 28 additions and 0 deletions

View file

@ -56,6 +56,14 @@ defmodule HTTPoisonMock do
}}
end
def get("https://info.pleroma.site/activity4.json", _, _) do
{:ok,
%Response{
status_code: 200,
body: File.read!("test/fixtures/httpoison_mock/https__info.pleroma.site_activity4.json")
}}
end
def get("https://info.pleroma.site/actor.json", _, _) do
{:ok,
%Response{