From 4f0fee1ce7ca39ab4f809ecd7a041b1c2d64f82e Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 27 Sep 2017 17:02:36 -0400 Subject: [PATCH] FIX: Test failures --- spec/multisite/multisite_class_var_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/multisite/multisite_class_var_spec.rb b/spec/multisite/multisite_class_var_spec.rb index 8787e6a9795..62cac14ffc9 100644 --- a/spec/multisite/multisite_class_var_spec.rb +++ b/spec/multisite/multisite_class_var_spec.rb @@ -29,10 +29,12 @@ RSpec.describe MultisiteClassVar do end after do + conn.clear_settings! [:@@db_spec_cache, :@@host_spec_cache, :@@default_spec].each do |class_variable| conn.remove_class_variable(class_variable) end conn.set_current_db + SiteSetting.provider = @original_provider end it "keeps the variable specific to the current site" do