Fix the build.

This commit is contained in:
Guo Xiang Tan 2020-06-22 14:50:17 +08:00
parent 3370ef188e
commit 8cc8e80d7a
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20
2 changed files with 4 additions and 5 deletions

View File

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

View File

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