Sha256: cb45ebf540c4590b04c70360f26249aa5169fb5d917f209585863ff2ad5743ca

Contents?: true

Size: 476 Bytes

Versions: 8

Compression:

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

  it 'is not fatal' do
    event = Slack::RealTime::Event.new(
      'type' => 'pref_change',
      'name' => 'push_sound',
      'value' => 'updated.mp3'
    )
    expect(client.self).to receive(:prefs) { raise ArgumentError }
    expect { client.send(:dispatch, event) }.not_to raise_error
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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