Sha256: 19769b692b8dcd7d275c95c6b4146f9397d62ab9004689583befb18ed103f608

Contents?: true

Size: 445 Bytes

Versions: 15

Compression:

Stored size: 445 Bytes

Contents

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) { fail ArgumentError }
    expect { client.send(:dispatch, event) }.to_not raise_error
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
slack-ruby-client-0.10.0 spec/slack/real_time/event_handlers/event_handlers_spec.rb
slack-ruby-client-0.9.1 spec/slack/real_time/event_handlers/event_handlers_spec.rb
slack-ruby-client-0.9.0 spec/slack/real_time/event_handlers/event_handlers_spec.rb
slack-ruby-client-0.8.1 spec/slack/real_time/event_handlers/event_handlers_spec.rb
slack-ruby-client-0.8.0 spec/slack/real_time/event_handlers/event_handlers_spec.rb
slack-ruby-client-0.7.9 spec/slack/real_time/event_handlers/event_handlers_spec.rb
slack-ruby-client-0.7.8 spec/slack/real_time/event_handlers/event_handlers_spec.rb
slack-ruby-client-0.7.7 spec/slack/real_time/event_handlers/event_handlers_spec.rb
slack-ruby-client-0.7.6 spec/slack/real_time/event_handlers/event_handlers_spec.rb
slack-ruby-client-0.7.5 spec/slack/real_time/event_handlers/event_handlers_spec.rb
slack-ruby-client-0.7.4 spec/slack/real_time/event_handlers/event_handlers_spec.rb
slack-ruby-client-0.7.3 spec/slack/real_time/event_handlers/event_handlers_spec.rb
slack-ruby-client-0.7.2 spec/slack/real_time/event_handlers/event_handlers_spec.rb
slack-ruby-client-0.7.1 spec/slack/real_time/event_handlers/event_handlers_spec.rb
slack-ruby-client-0.7.0 spec/slack/real_time/event_handlers/event_handlers_spec.rb