Sha256: 43663d40d5507d9fa4d1562f699283a64db9acf48378843a936123e8b985e6c4
Contents?: true
Size: 422 Bytes
Versions: 5
Compression:
Stored size: 422 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' RSpec.describe Slack::RealTime::Client, vcr: { cassette_name: 'web/rtm_connect' } 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
5 entries across 5 versions & 1 rubygems