commit: fce29984813b05e827b720656989b27bd6322ddf
parent 96cfc9575c4c1b10402a40195e1ab4b9b20def26
Author: faried nawaz <faried@gmail.com>
Date: Wed, 16 Nov 2022 00:44:28 +0500
use to_rfc2822 instead of pub_date in tests, too
Diffstat:
1 file 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
@@ -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) == [