Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions test/integration/notifications_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
require "test_helper"

class NotificationDeliveryTest < ActiveSupport::TestCase
Comment thread
robzolkos marked this conversation as resolved.
PUBLIC_TEST_IP = "142.250.185.206"
Comment thread
robzolkos marked this conversation as resolved.
Outdated

setup do
@assigner = users(:david)
@assignee = users(:kevin)
Expand All @@ -16,6 +18,8 @@ class NotificationDeliveryTest < ActiveSupport::TestCase
Notification.register_push_target(:web)
Notification.register_push_target(push_target_with_tracking)

stub_dns_resolution(PUBLIC_TEST_IP)
Comment thread
robzolkos marked this conversation as resolved.
Outdated

# Give assignee a web push subscription
@assignee.push_subscriptions.create!(
endpoint: "https://fcm.googleapis.com/fcm/send/test123",
Expand Down
Loading