Commit
+5 -5 +/-1 browse
1 | diff --git a/src/web2/routes/rss.rs b/src/web2/routes/rss.rs |
2 | index dcb142f..3fd2bfc 100644 |
3 | --- a/src/web2/routes/rss.rs |
4 | +++ b/src/web2/routes/rss.rs |
5 | @@ -210,7 +210,7 @@ impl Builder { |
6 | } |
7 | // reorder everything by time |
8 | items.sort_by(|a, b| a.1.cmp(&b.1)); |
9 | - // items.reverse(); |
10 | + items.reverse(); |
11 | Ok(self.channel(items.iter().map(|item| item.0.clone()).collect())) |
12 | } |
13 | |
14 | @@ -551,11 +551,11 @@ mod tests { |
15 | assert!(channel.items[0] |
16 | .title |
17 | .as_ref() |
18 | - .is_some_and(|title| title == "Commit: commit 2")); |
19 | + .is_some_and(|title| title == "Commit: commit 3")); |
20 | assert!(channel.items[1] |
21 | .title |
22 | .as_ref() |
23 | - .is_some_and(|title| title == "Commit: commit 3")); |
24 | + .is_some_and(|title| title == "Commit: commit 2")); |
25 | test_repo.cleanup().expect("failed to cleanup repo"); |
26 | } |
27 | |
28 | @@ -598,7 +598,7 @@ mod tests { |
29 | assert!(channel.items[0] |
30 | .title |
31 | .as_ref() |
32 | - .is_some_and(|title| title == "Commit: commit 1")); |
33 | + .is_some_and(|title| title == "Commit: commit 2")); |
34 | assert!(channel.items[1] |
35 | .title |
36 | .as_ref() |
37 | @@ -610,7 +610,7 @@ mod tests { |
38 | assert!(channel.items[2] |
39 | .title |
40 | .as_ref() |
41 | - .is_some_and(|title| title == "Commit: commit 2")); |
42 | + .is_some_and(|title| title == "Commit: commit 1")); |
43 | assert!(channel.items[0].guid.is_some()); |
44 | // FIXME: assert!(channel.items[1].guid.is_some()); |
45 | assert!(channel.items[2].guid.is_some()); |