Files
fizzy/saas/test/models/push_config_test.rb
T
Fernando Olivares 3c54cd84fc Add native push notification infrastructure
- Add action_push_native gem and SaaS configuration
- Add device registration API and UI
- Add User::Devices concern
- Add NotificationPusher::Native for push delivery
- Add tests and fixtures for native push
2026-02-25 19:31:13 +01:00

22 lines
763 B
Ruby

require "test_helper"
class PushConfigTest < ActiveSupport::TestCase
test "loads push config from the saas engine" do
skip unless Fizzy.saas?
config = Rails.application.config_for(:push)
apple_team_id = config.dig("apple", "team_id")
apple_topic = config.dig("apple", "topic")
google_project_id = config.dig("google", "project_id")
skip "Update test once APNS team_id is configured" if apple_team_id == "YOUR_TEAM_ID"
skip "Update test once APNS topic is configured" if apple_topic == "com.yourcompany.fizzy"
skip "Update test once FCM project_id is configured" if google_project_id == "your-firebase-project"
assert apple_team_id.present?
assert apple_topic.present?
assert google_project_id.present?
end
end