Sha256: 96d5f56be6ed4f35c4f7b715367a35bbe92d447bb059aacf9546b6e9864a0638
Contents?: true
Size: 420 Bytes
Versions: 8
Compression:
Stored size: 420 Bytes
Contents
# frozen_string_literal: true 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
8 entries across 8 versions & 1 rubygems