A platform for community discussion. Free, open, simple.
FIX: When testing multiple flagged words, ensure test matches expected word order. (#31758)
Gary Pendergastb461c5f7a786
diff --git a/spec/integration/watched_words_spec.rb b/spec/integration/watched_words_spec.rbindex 4e7c322a4a2..c4fb2064ec8 100644--- a/spec/integration/watched_words_spec.rb+++ b/spec/integration/watched_words_spec.rb@@ -267,7 +267,7 @@ RSpec.describe WatchedWord doReviewableScore.where(reviewable: reviewable,reason: "watched_word",- context: "#{flag_word.word},#{another_flag_word.word}",+ context: [flag_word.word, another_flag_word.word].sort.join(","),),).to be_presentend