Sha256: 0f286b5289b56210d0773d2c402961568ed927aeb3dddff4d0c42d6a5763bf8d
Contents?: true
Size: 541 Bytes
Versions: 5
Compression:
Stored size: 541 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 '#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
5 entries across 5 versions & 1 rubygems