mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 03:06:53 +08:00
FIX: Properly support defaults for upload site settings.
This commit is contained in:
@ -7,8 +7,11 @@ RSpec.describe PushNotificationPusher do
|
||||
end
|
||||
|
||||
it "returns custom badges url" do
|
||||
SiteSetting.push_notifications_icon_url = "/test.png"
|
||||
expect(PushNotificationPusher.get_badge).to eq("/test.png")
|
||||
upload = Fabricate(:upload)
|
||||
SiteSetting.push_notifications_icon = upload
|
||||
|
||||
expect(PushNotificationPusher.get_badge)
|
||||
.to eq(UrlHelper.absolute(upload.url))
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user