From 8cc8e80d7a3cb462340503085a21bb0d7498a983 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 22 Jun 2020 14:50:17 +0800 Subject: [PATCH] Fix the build. --- spec/helpers/application_helper_spec.rb | 1 - spec/services/site_settings_spec.rb | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/spec/helpers/application_helper_spec.rb b/spec/helpers/application_helper_spec.rb index 7626bbbc39f..2ccca114b3f 100644 --- a/spec/helpers/application_helper_spec.rb +++ b/spec/helpers/application_helper_spec.rb @@ -342,7 +342,6 @@ describe ApplicationHelper do expect(helper.crawlable_meta_data).to include(SiteSetting.site_logo_url) SiteSetting.logo = nil - SiteSetting.logo_url = nil expect(helper.crawlable_meta_data).to include(Upload.find(SiteIconManager::SKETCH_LOGO_ID).url) end diff --git a/spec/services/site_settings_spec.rb b/spec/services/site_settings_spec.rb index c622ad1a395..906a2ac23f6 100644 --- a/spec/services/site_settings_spec.rb +++ b/spec/services/site_settings_spec.rb @@ -32,11 +32,11 @@ describe SiteSettingsTask do end it "updates hidden settings" do - yml = "logo_url: /logo.png" + yml = "default_theme_id: 999999999" log, counts = SiteSettingsTask.import(yml) - expect(log[0]).to eq "Changed logo_url FROM: /images/d-logo-sketch.png TO: /logo.png" - expect(counts[:updated]).to eq 1 - expect(SiteSetting.logo_url).to eq "/logo.png" + expect(log[0]).to eq "Changed default_theme_id FROM: 2 TO: 999999999" + expect(counts[:updated]).to eq(1) + expect(SiteSetting.default_theme_id).to eq(999999999) end it "won't update a setting that doesn't exist" do