mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 06:48:47 +08:00
FEATURE: custom setting for large square site icon
This icon is used for android splash screen
This commit is contained in:
@ -3,11 +3,17 @@ require 'rails_helper'
|
||||
RSpec.describe MetadataController do
|
||||
describe 'manifest.json' do
|
||||
it 'returns the right output' do
|
||||
|
||||
title = 'MyApp'
|
||||
SiteSetting.title = title
|
||||
SiteSetting.large_icon_url = "http://big.square/png"
|
||||
|
||||
get :manifest
|
||||
expect(response.body).to include(title)
|
||||
expect(response.content_type).to eq('application/json')
|
||||
manifest = JSON.parse(response.body)
|
||||
|
||||
expect(manifest["name"]).to eq(title)
|
||||
expect(manifest["icons"].first["src"]).to eq("http://big.square/png")
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user