DEV: Run tests with default value for `max_consecutive_replies` (#6723)

DEV: Run tests with default value for max_consecutive_replies (#6723)

From 22001b3c50dec1ce424dd821790ab4181012e99c Mon Sep 17 00:00:00 2001
From: David Taylor <david@taylorhq.com>
Date: Tue, 4 Dec 2018 12:07:27 +0000
Subject: [PATCH] DEV: Run tests with default value for
 `max_consecutive_replies` (#6723)


diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb
index b3956ce..1367319 100644
--- a/spec/rails_helper.rb
+++ b/spec/rails_helper.rb
@@ -60,7 +60,6 @@ end
 # let's not run seed_fu every test
 SeedFu.quiet = true if SeedFu.respond_to? :quiet
 
-SiteSetting.max_consecutive_replies = 0
 SiteSetting.automatically_download_gravatars = false
 
 SeedFu.seed
@@ -163,9 +162,6 @@ RSpec.configure do |config|
     # very expensive IO operations
     SiteSetting.automatically_download_gravatars = false
 
-    # it makes hard to test
-    SiteSetting.max_consecutive_replies = 0
-
     Discourse.clear_readonly!
     Sidekiq::Worker.clear_all

GitHub

2 Likes