diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-09-16 16:49:46 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-09-16 16:49:46 +0200 |
commit | 7c82b8219734102ff24d9dc24226c08351e608cc (patch) | |
tree | d9b95270a24505f08fd671bcd9ccd6e96933431d /test | |
parent | 959e993c7d112d9a30baae3d403687903a7f6a27 (diff) | |
download | pleroma-7c82b8219734102ff24d9dc24226c08351e608cc.tar.gz pleroma-7c82b8219734102ff24d9dc24226c08351e608cc.zip |
Make emoji configurable in files.
Diffstat (limited to 'test')
-rw-r--r-- | test/support/httpoison_mock.ex | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/support/httpoison_mock.ex b/test/support/httpoison_mock.ex index 091fb9ded..21607ba95 100644 --- a/test/support/httpoison_mock.ex +++ b/test/support/httpoison_mock.ex @@ -240,6 +240,13 @@ defmodule HTTPoisonMock do }} end + def get("https://pleroma.soykaf.com/.well-known/webfinger?resource=https://pleroma.soykaf.com/users/shp", [Accept: "application/xrd+xml"], []) do + {:ok, %Response{ + status_code: 200, + body: File.read!("test/fixtures/httpoison_mock/shp@pleroma.soykaf.com.webfigner") + }} + end + def get("https://squeet.me/xrd/?uri=lain@squeet.me", [Accept: "application/xrd+xml"], []) do {:ok, %Response{ status_code: 200, @@ -259,7 +266,13 @@ defmodule HTTPoisonMock do status_code: 200, body: File.read!("test/fixtures/httpoison_mock/sakamoto.atom") }} + end + def get("https://pleroma.soykaf.com/users/shp/feed.atom", _, _) do + {:ok, %Response{ + status_code: 200, + body: File.read!("test/fixtures/httpoison_mock/shp@pleroma.soykaf.com.feed") + }} end def get("http://social.heldscal.la/.well-known/host-meta", [], [follow_redirect: true]) do |