Sha256: c86c6b74d676d1f2a8dd36d4e30507cd1d5141c8bf2e0bc9f91c6039133c42c6

Contents?: true

Size: 494 Bytes

Versions: 8

Compression:

Stored size: 494 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 '#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

8 entries across 8 versions & 1 rubygems

Version Path
slack-ruby-client-1.1.0 spec/slack/real_time/api/typing_spec.rb
slack-ruby-client-1.0.0 spec/slack/real_time/api/typing_spec.rb
slack-ruby-client-0.17.0 spec/slack/real_time/api/typing_spec.rb
slack-ruby-client-0.16.0 spec/slack/real_time/api/typing_spec.rb
slack-ruby-client-0.15.1 spec/slack/real_time/api/typing_spec.rb
slack-ruby-client-0.15.0 spec/slack/real_time/api/typing_spec.rb
slack-ruby-client-0.14.6 spec/slack/real_time/api/typing_spec.rb
slack-ruby-client-0.14.5 spec/slack/real_time/api/typing_spec.rb