mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 21:23:45 +08:00
15 lines
377 B
Ruby
15 lines
377 B
Ruby
|
require 'rails_helper'
|
||
|
|
||
|
RSpec.describe PushNotificationPusher do
|
||
|
|
||
|
it "returns badges url by default" do
|
||
|
expect(PushNotificationPusher.get_badge).to eq("/assets/push-notifications/discourse.png")
|
||
|
end
|
||
|
|
||
|
it "returns custom badges url" do
|
||
|
SiteSetting.push_notifications_icon_url = "/test.png"
|
||
|
expect(PushNotificationPusher.get_badge).to eq("/test.png")
|
||
|
end
|
||
|
|
||
|
end
|