projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
correct order for publised in assert
[akkoma]
/
test
/
web
/
feed
/
tag_controller_test.exs
diff --git
a/test/web/feed/tag_controller_test.exs
b/test/web/feed/tag_controller_test.exs
index e863df86b0c7fa987a02149b98e5c99f40586696..c3d83ef81f7b6086afc63cc5400a0a55b0b0fa9b 100644
(file)
--- a/
test/web/feed/tag_controller_test.exs
+++ b/
test/web/feed/tag_controller_test.exs
@@
-138,8
+138,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(activity
1
.data["published"]),
- FeedView.pub_date(activity
2
.data["published"])
+ FeedView.pub_date(activity
2
.data["published"]),
+ FeedView.pub_date(activity
1
.data["published"])
]
assert xpath(xml, ~x"//channel/item/enclosure/@url"sl) == [
]
assert xpath(xml, ~x"//channel/item/enclosure/@url"sl) == [
@@
-150,8
+150,8
@@
defmodule Pleroma.Web.Feed.TagControllerTest do
obj2 = Object.normalize(activity2)
assert xpath(xml, ~x"//channel/item/description/text()"sl) == [
obj2 = Object.normalize(activity2)
assert xpath(xml, ~x"//channel/item/description/text()"sl) == [
- HtmlEntities.decode(FeedView.activity_content(obj2)),
- HtmlEntities.decode(FeedView.activity_content(obj1))
+ HtmlEntities.decode(FeedView.activity_content(obj2
.data
)),
+ HtmlEntities.decode(FeedView.activity_content(obj1
.data
))
]
response =
]
response =