DEV: Fix a flaky validation message (#16141)

The order of tags in the validation error message could be random, which we don't really care about, but it made the specs flake out once in a while.

The flaky specs were:

```
spec/lib/discourse_tagging_spec.rb:511
spec/lib/discourse_tagging_spec.rb:519
```
This commit is contained in:
Jarek Radosz 2022-03-09 02:38:05 +01:00 committed by GitHub
parent 3ad9c2cdb6
commit 9892844507
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,7 +166,7 @@ module DiscourseTagging
"tags.required_tags_from_group",
count: category.min_tags_from_required_group,
tag_group_name: category.required_tag_group.name,
tags: category.required_tag_group.tags.pluck(:name).join(", ")
tags: category.required_tag_group.tags.order(:id).pluck(:name).join(", ")
)
)
false