DEV: Queue jobs in tests by default.

This commit is contained in:
Guo Xiang Tan
2018-05-31 14:45:47 +08:00
parent 95f9b72351
commit be28154d3b
42 changed files with 75 additions and 79 deletions
+1
View File
@@ -163,6 +163,7 @@ describe WatchedWord do
end
it "flags on revisions" do
SiteSetting.queue_jobs = false
post = Fabricate(:post, topic: Fabricate(:topic, user: tl2_user), user: tl2_user)
expect {
PostRevisor.new(post).revise!(post.user, { raw: "Want some #{flag_word.word} for cheap?" }, revised_at: post.updated_at + 10.seconds)