DEV: Queue jobs in tests by default.

This commit is contained in:
Guo Xiang Tan
2018-05-31 14:19:11 +08:00
parent 95f9b72351
commit be28154d3b
42 changed files with 75 additions and 79 deletions

View File

@@ -2,6 +2,8 @@ require 'rails_helper'
describe QuotedPost do
it 'correctly extracts quotes' do
SiteSetting.queue_jobs = false
topic = Fabricate(:topic)
post1 = create_post(topic: topic, post_number: 1, raw: "foo bar")
post2 = create_post(topic: topic, post_number: 2, raw: "lorem ipsum")