tests: add a test to verify the general fake direction protection works in all cases
This commit is contained in:
parent
dc1d8e13b4
commit
55640c4804
3 changed files with 28 additions and 0 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue