mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 17:27:16 +08:00
fix intermittent failing tests, some watched word refactoring
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user