mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-29 10:12:34 +00:00
16 lines
386 B
Ruby
16 lines
386 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.describe RoomChannel do
|
|
let!(:contact_inbox) { create(:contact_inbox) }
|
|
|
|
before do
|
|
stub_connection
|
|
end
|
|
|
|
it 'subscribes to a stream when pubsub_token is provided' do
|
|
subscribe(pubsub_token: contact_inbox.pubsub_token)
|
|
expect(subscription).to be_confirmed
|
|
expect(subscription).to have_stream_for(contact_inbox.pubsub_token)
|
|
end
|
|
end
|