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
1 changed files with 2 additions and 2 deletions

View File

@ -137,8 +137,8 @@ test "gets a feed (RSS)", %{conn: conn} do
] ]
assert xpath(xml, ~x"//channel/item/pubDate/text()"sl) == [ assert xpath(xml, ~x"//channel/item/pubDate/text()"sl) == [
FeedView.pub_date(activity2.data["published"]), FeedView.to_rfc2822(activity2.data["published"]),
FeedView.pub_date(activity1.data["published"]) FeedView.to_rfc2822(activity1.data["published"])
] ]
assert xpath(xml, ~x"//channel/item/enclosure/@url"sl) == [ assert xpath(xml, ~x"//channel/item/enclosure/@url"sl) == [