use to_rfc2822 instead of pub_date in tests, too

This commit is contained in:
faried nawaz 2022-11-16 00:44:28 +05:00
parent 96cfc9575c
commit fce2998481
No known key found for this signature in database
GPG Key ID: C8EBC3669D3539B4

View File

@ -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) == [