mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 16:33:38 +08:00
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:
parent
3ad9c2cdb6
commit
9892844507
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user