A platform for community discussion. Free, open, simple.
DEV: change testing cache clearing so it is more deliberate
Sam Saffronbb8dfb124ec2
diff --git a/spec/integration/watched_words_spec.rb b/spec/integration/watched_words_spec.rbindex 2e3853be08e..2569247e12a 100644--- a/spec/integration/watched_words_spec.rb+++ b/spec/integration/watched_words_spec.rb@@ -14,8 +14,12 @@ describe WatchedWord dolet(:flag_word) { Fabricate(:watched_word, action: WatchedWord.actions[:flag]) }let(:block_word) { Fabricate(:watched_word, action: WatchedWord.actions[:block]) }+ before_all do+ WordWatcher.clear_cache!+ end+after do- $redis.flushall+ WordWatcher.clear_cache!endcontext "block" do