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)
|
expect(helper.crawlable_meta_data).to include(SiteSetting.site_logo_url)
|
||||||
|
|
||||||
SiteSetting.logo = nil
|
SiteSetting.logo = nil
|
||||||
SiteSetting.logo_url = nil
|
|
||||||
|
|
||||||
expect(helper.crawlable_meta_data).to include(Upload.find(SiteIconManager::SKETCH_LOGO_ID).url)
|
expect(helper.crawlable_meta_data).to include(Upload.find(SiteIconManager::SKETCH_LOGO_ID).url)
|
||||||
end
|
end
|
||||||
|
|
|
@ -32,11 +32,11 @@ describe SiteSettingsTask do
|
||||||
end
|
end
|
||||||
|
|
||||||
it "updates hidden settings" do
|
it "updates hidden settings" do
|
||||||
yml = "logo_url: /logo.png"
|
yml = "default_theme_id: 999999999"
|
||||||
log, counts = SiteSettingsTask.import(yml)
|
log, counts = SiteSettingsTask.import(yml)
|
||||||
expect(log[0]).to eq "Changed logo_url FROM: /images/d-logo-sketch.png TO: /logo.png"
|
expect(log[0]).to eq "Changed default_theme_id FROM: 2 TO: 999999999"
|
||||||
expect(counts[:updated]).to eq 1
|
expect(counts[:updated]).to eq(1)
|
||||||
expect(SiteSetting.logo_url).to eq "/logo.png"
|
expect(SiteSetting.default_theme_id).to eq(999999999)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "won't update a setting that doesn't exist" do
|
it "won't update a setting that doesn't exist" do
|
||||||
|
|
Loading…
Reference in New Issue