A platform for community discussion. Free, open, simple.
DEV: Spec shouldn't depend on translation
Gerhard Schlager0ea58fe51fe7
diff --git a/spec/services/push_notification_pusher_spec.rb b/spec/services/push_notification_pusher_spec.rbindex 62ae1cfc930..851675cf34f 100644--- a/spec/services/push_notification_pusher_spec.rb+++ b/spec/services/push_notification_pusher_spec.rb@@ -47,8 +47,10 @@ RSpec.describe PushNotificationPusher doSiteSetting.allow_user_locale = trueuser.update!(locale: 'pt_BR')+ TranslationOverride.upsert!("pt_BR", "discourse_push_notifications.popup.mentioned", "pt_BR notification")+Webpush.expects(:payload_send).with do |*args|- args.to_s.include?("system mencionou")+ JSON.parse(args.first[:message])["title"] == "pt_BR notification"end.oncecreate_subscription