From 04e35260965f234bae628df7241906274106ffc4 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 29 Aug 2017 14:02:24 -0400 Subject: [PATCH] Only remove default locale which is the only column we touch see: https://meta.discourse.org/t/failing-tests-in-discourse-dev-due-to-multisite/68720/5 --- spec/multisite/site_settings_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/multisite/site_settings_spec.rb b/spec/multisite/site_settings_spec.rb index 94a2e3c421d..75ebfc92553 100644 --- a/spec/multisite/site_settings_spec.rb +++ b/spec/multisite/site_settings_spec.rb @@ -12,7 +12,7 @@ RSpec.describe 'Multisite SiteSettings' do after do ['default', 'second'].each do |db| - conn.with_connection(db) { SiteSetting.destroy_all } + conn.with_connection(db) { SiteSetting.where(name: 'default_locale').destroy_all } end conn.clear_settings!