Sha256: 118c758f2e56b7cbcf495b95b107d8a0409f6fde164871906909821acfe530d6
Contents?: true
Size: 389 Bytes
Versions: 39
Compression:
Stored size: 389 Bytes
Contents
require 'spec_helper' RSpec.describe Slack::RealTime::Client, vcr: { cassette_name: 'web/rtm_start' } do include_context 'connected client' describe '#ping' do before do allow(client).to receive(:next_id).and_return(42) end it 'sends message' do expect(socket).to receive(:send_data).with({ type: 'ping', id: 42 }.to_json) client.ping end end end
Version data entries
39 entries across 39 versions & 2 rubygems