FIX: Test failures
This commit is contained in:
parent
41c3941c4c
commit
4f0fee1ce7
|
@ -29,10 +29,12 @@ RSpec.describe MultisiteClassVar do
|
||||||
end
|
end
|
||||||
|
|
||||||
after do
|
after do
|
||||||
|
conn.clear_settings!
|
||||||
[:@@db_spec_cache, :@@host_spec_cache, :@@default_spec].each do |class_variable|
|
[:@@db_spec_cache, :@@host_spec_cache, :@@default_spec].each do |class_variable|
|
||||||
conn.remove_class_variable(class_variable)
|
conn.remove_class_variable(class_variable)
|
||||||
end
|
end
|
||||||
conn.set_current_db
|
conn.set_current_db
|
||||||
|
SiteSetting.provider = @original_provider
|
||||||
end
|
end
|
||||||
|
|
||||||
it "keeps the variable specific to the current site" do
|
it "keeps the variable specific to the current site" do
|
||||||
|
|
Loading…
Reference in New Issue