FIX: Test failures

This commit is contained in:
Robin Ward 2017-09-27 17:02:36 -04:00
parent 41c3941c4c
commit 4f0fee1ce7
1 changed files with 2 additions and 0 deletions

View File

@ -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