DEV: Fix web manifest short_title tests
This commit is contained in:
parent
5ead60677a
commit
f88fa99b0b
|
@ -70,10 +70,13 @@ RSpec.describe MetadataController do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'uses the short_title if it is set' do
|
it 'uses the short_title if it is set' do
|
||||||
|
title = 'FooBarBaz Forum'
|
||||||
|
SiteSetting.title = title
|
||||||
|
|
||||||
get "/manifest.webmanifest"
|
get "/manifest.webmanifest"
|
||||||
expect(response.status).to eq(200)
|
expect(response.status).to eq(200)
|
||||||
manifest = JSON.parse(response.body)
|
manifest = JSON.parse(response.body)
|
||||||
expect(manifest).to_not have_key("short_name")
|
expect(manifest["short_name"]).to eq("FooBarBaz")
|
||||||
|
|
||||||
SiteSetting.short_title = "foo"
|
SiteSetting.short_title = "foo"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue