summaryrefslogtreecommitdiff
path: root/test/web/common_api/common_api_test.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-10-18 12:44:53 +0200
committerlain <lain@soykaf.club>2019-10-18 12:44:53 +0200
commit15bbc34c079018f1c988fe9d445bec50e85bbeaf (patch)
tree9235ff42e4a72cebfa8b33adf7c0086fb899ca87 /test/web/common_api/common_api_test.exs
parent4ec299ea9c1cf45c42e98d7b33f33a72f5e7a9c0 (diff)
downloadpleroma-15bbc34c079018f1c988fe9d445bec50e85bbeaf.tar.gz
pleroma-15bbc34c079018f1c988fe9d445bec50e85bbeaf.zip
Tests: Capture log.
Diffstat (limited to 'test/web/common_api/common_api_test.exs')
-rw-r--r--test/web/common_api/common_api_test.exs5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/web/common_api/common_api_test.exs b/test/web/common_api/common_api_test.exs
index 63d7ea79f..8195b1910 100644
--- a/test/web/common_api/common_api_test.exs
+++ b/test/web/common_api/common_api_test.exs
@@ -275,9 +275,10 @@ defmodule Pleroma.Web.CommonAPITest do
{:ok, activity} = CommonAPI.post(other_user, %{"status" => "cofe"})
{:ok, %Activity{}} = CommonAPI.favorite(user, activity.id)
+
assert capture_log(fn ->
- assert {:error, _} = CommonAPI.favorite(user, activity.id)
- end) =~ "[error]"
+ assert {:error, _} = CommonAPI.favorite(user, activity.id)
+ end) =~ "[error]"
end
end