diff options
Diffstat (limited to 'test/support/http_request_mock.ex')
-rw-r--r-- | test/support/http_request_mock.ex | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index cb022333f..ba88aff90 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -534,12 +534,15 @@ defmodule HttpRequestMock do }} end - def get( - "http://mastodon.example.org/@admin/99541947525187367", - _, - _, - _ - ) do + def get("http://mastodon.example.org/users/admin/statuses/99541947525187367", _, _, _) do + {:ok, + %Tesla.Env{ + status: 200, + body: File.read!("test/fixtures/mastodon-note-object.json") + }} + end + + def get("http://mastodon.example.org/@admin/99541947525187367", _, _, _) do {:ok, %Tesla.Env{ status: 200, |