fix intermittent failing tests, some watched word refactoring

This commit is contained in:
Neil Lalonde
2017-07-27 12:26:55 -04:00
parent ad04d188ae
commit 68b3dd43ce
5 changed files with 27 additions and 16 deletions

View File

@ -12,6 +12,10 @@ describe WatchedWord do
let(:flag_word) { Fabricate(:watched_word, action: WatchedWord.actions[:flag]) }
let(:block_word) { Fabricate(:watched_word, action: WatchedWord.actions[:block]) }
after do
$redis.flushall
end
context "block" do
def should_block_post(manager)
expect {