summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfaried nawaz <faried@gmail.com>2022-11-16 00:44:28 +0500
committerfaried nawaz <faried@gmail.com>2022-12-19 01:44:47 +0500
commitfce29984813b05e827b720656989b27bd6322ddf (patch)
tree8f2b9c2cbfd0a3cc4c654694061ae1548556f3b8
parent96cfc9575c4c1b10402a40195e1ab4b9b20def26 (diff)
use to_rfc2822 instead of pub_date in tests, too
-rw-r--r--test/pleroma/web/feed/tag_controller_test.exs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/pleroma/web/feed/tag_controller_test.exs b/test/pleroma/web/feed/tag_controller_test.exs
index a67acdb47..58ab8f137 100644
--- a/test/pleroma/web/feed/tag_controller_test.exs
+++ b/test/pleroma/web/feed/tag_controller_test.exs
@@ -137,8 +137,8 @@ defmodule Pleroma.Web.Feed.TagControllerTest do
]
assert xpath(xml, ~x"//channel/item/pubDate/text()"sl) == [
- FeedView.pub_date(activity2.data["published"]),
- FeedView.pub_date(activity1.data["published"])
+ FeedView.to_rfc2822(activity2.data["published"]),
+ FeedView.to_rfc2822(activity1.data["published"])
]
assert xpath(xml, ~x"//channel/item/enclosure/@url"sl) == [