use to_rfc2822 instead of pub_date in tests, too
This commit is contained in:
parent
96cfc9575c
commit
fce2998481
|
@ -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) == [
|
||||||
|
|
Loading…
Reference in New Issue