docbrown/spec/queries
Daniel Uber 0969e8edb4
Remove assert order not called instead of expecting id order (#13544)
We can't rely on the database returning published articles in ID
order, since there are indexes on published_at and on published which
could very well be in any order (btree), and no explicit `ORDER BY id
ASC` was in the query.

I checked the query that's run in the test against blazer, and confirmed that under
real conditions the results are pretty far from ordered:

```
SELECT articles.id FROM articles WHERE (published_at <= '2021-04-27') AND articles.published = true LIMIT 10 OFFSET 0;
----
 id
166916
637099
132444
431420
501939
141182
565391
515964
146231
677241
```

Change the expectation to assert Article does not receive :order, and
remove the expectation that the ids are returned in the order created.
2021-04-27 13:15:56 -05:00
..
admin Rename banned and comment_banned roles (#12270) 2021-04-06 10:12:14 -05:00
articles [15-Minute Fix] Sidebar Tags Show Relevant Posts on Homepage (#13326) 2021-04-09 10:40:09 -06:00
consumer_apps Push Notification multi app support (#13304) 2021-04-21 17:13:01 -06:00
homepage Remove assert order not called instead of expecting id order (#13544) 2021-04-27 13:15:56 -05:00