Add mock.

This commit is contained in:
lain 2018-02-18 10:21:19 +01:00
parent 81ea359a7c
commit fc9d361d17

View file

@ -373,6 +373,13 @@ def get("http://mastodon.example.org/users/admin", ["Accept": "application/activ
}}
end
def get("http://mastodon.example.org/@admin/99541947525187367", ["Accept": "application/activity+json"], _) do
{:ok, %Response{
status_code: 200,
body: File.read!("test/fixtures/mastodon-note-object.json")
}}
end
def get(url, body, headers) do
{:error, "Not implemented the mock response for get #{inspect(url)}, #{inspect(body)}, #{inspect(headers)}"}
end