[openstreetmap/openstreetmap-website] Order of comments in changeset comments feeds (PR #4944)
David Tsiklauri
notifications at github.com
Fri Jul 5 14:37:54 UTC 2024
@nertc commented on this pull request.
> @@ -46,6 +46,14 @@ def test_feed
assert_select "item", :count => 3
end
end
+
+ # Gets comment Ids from HTML and checks that they are in descending order
+ last_comment_id = -1
+ @response.body.split("Changeset comment ")[1..].each_with_index do |data, index|
+ id = Integer data.split("<")[0]
I rewrote the test in a different way
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4944#discussion_r1666885072
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4944/review/2160854334 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240705/ce6e51b8/attachment.htm>
More information about the rails-dev
mailing list