mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 13:43:36 +08:00
Fix the build.
This commit is contained in:
parent
3370ef188e
commit
8cc8e80d7a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user