use to_rfc2822 instead of pub_date in tests, too
This commit is contained in:
parent
96cfc9575c
commit
fce2998481
1 changed files with 2 additions and 2 deletions
|
@ -137,8 +137,8 @@ defmodule Pleroma.Web.Feed.TagControllerTest 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) == [
|
||||||
|
|
Loading…
Reference in a new issue