Sha256: 906d7c9341144b41d824b24500737c7d97f5a45cefd29d6afd9404fd0def4d21
Contents?: true
Size: 480 Bytes
Versions: 39
Compression:
Stored size: 480 Bytes
Contents
require 'spec_helper' RSpec.describe Slack::RealTime::Client, vcr: { cassette_name: 'web/rtm_start' } do include_context 'connected client' describe '#message' 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: 'message', id: 42, text: 'hello world', channel: 'channel' }.to_json) client.message(text: 'hello world', channel: 'channel') end end end
Version data entries
39 entries across 39 versions & 2 rubygems