Sha256: d8e13c26050376e15c5fbb5a376d689eeac823abd04bf9bdfd312f51a537865f

Contents?: true

Size: 496 Bytes

Versions: 5

Compression:

Stored size: 496 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 '#typing' do
    before do
      allow(client).to receive(:next_id).and_return(42)
    end

    it 'sends a typing indicator' do
      expect(socket).to(
        receive(:send_data).with({ type: 'typing', id: 42, channel: 'channel' }.to_json)
      )
      client.typing(channel: 'channel')
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
slack-ruby-client-2.4.0 spec/slack/real_time/api/typing_spec.rb
slack-ruby-client-2.3.0 spec/slack/real_time/api/typing_spec.rb
slack-ruby-client-2.2.0 spec/slack/real_time/api/typing_spec.rb
slack-ruby-client-2.1.0 spec/slack/real_time/api/typing_spec.rb
slack-ruby-client-2.0.0 spec/slack/real_time/api/typing_spec.rb