mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:29:30 +08:00
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
|
||||
|
||||
it 'uses the short_title if it is set' do
|
||||
title = 'FooBarBaz Forum'
|
||||
SiteSetting.title = title
|
||||
|
||||
get "/manifest.webmanifest"
|
||||
expect(response.status).to eq(200)
|
||||
manifest = JSON.parse(response.body)
|
||||
expect(manifest).to_not have_key("short_name")
|
||||
expect(manifest["short_name"]).to eq("FooBarBaz")
|
||||
|
||||
SiteSetting.short_title = "foo"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user