[verified] Restore Chatwoot Hub compatibility APIs

This commit is contained in:
Kunthawat Greethong
2026-08-15 15:35:55 +07:00
parent 832a7fdae0
commit 1a3697f687
2 changed files with 32 additions and 0 deletions

View File

@@ -7,6 +7,11 @@ describe ChatwootHub do
expect(described_class).not_to respond_to(:emit_event)
end
it 'retains push and instance compatibility APIs for the push-relay task' do
expect(described_class).to respond_to(:push_notification_url, :send_push, :send_push_with_response, :instance_config)
expect(described_class.push_notification_url).to eq('https://hub.2.chatwoot.com/send_push')
end
describe '.base_url' do
it 'uses the static hub url' do
expect(described_class::DEFAULT_BASE_URL).to eq('https://hub.2.chatwoot.com')